Novell Home

Allowing Public Access to eGuide through iChain

Novell Cool Solutions: Trench
By Pete Willis

Digg This - Slashdot This

Posted: 28 Aug 2003
 

The Problem:

Our setup allows public access to eGuide through iChain -- to browse, no authication is needed. But we obviously want users to have to authenticate -- to iChain -- in order to amend their personal profile.

The Solution:

We changed the eguideheader file to force login and logout via the iChain login page not eGuide. iChain passes the header info through to eGuide automatically. This allows us to restrict login to eGuide via Access Control Rules in iChain.

The Details:

Replaced the following lines in eguideheader.xsl:

For the Login:

From:

<xsl:attribute name="href">
  eGuide?User.context=<xsl:value-of select="User.context"/>
  &Action=Login
</xsl:attribute>

To:

<xsl:attribute name="href">
  http://domain.name/ICSLogin/?"http://domain.name/eGuide/servlet/eGuide?"
</xsl:attribute>

And for the logout:

We created an XSL template called LogoutFrame.xsl

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
<xsl:template match="Novell/eGuide">

<HTML>
<HEAD>
  <TITLE>Logout</TITLE>
</HEAD>
  <frameset cols="0, 100%" marginwidth="0" marginheight="0" border="2">
  <frame id="invisibleFrame" src="/cmd/ICSLogout"/>
  <frame  src="eGuide?User.context={User.context}&Action=Logout"/>
  </frameset>
</HTML>
</xsl:template>

Change the logout button:

From:

<xsl:attribute name="href">
  eGuide?User.context=<xsl:value-of select="User.context"/>
  &Action=Logout
</xsl:attribute>

To:

<xsl:attribute name="href">
  eGuide?User.context=<xsl:value-of select="User.context"/>
  &stsh=LogoutFrame
</xsl:attribute>

You can contact pete with questions at pete.willisTAKETHISOUT@darcyww.co.uk


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell