Novell is now a part of Micro Focus

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:


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


<xsl:attribute name="href">""

And for the logout:

We created an XSL template called LogoutFrame.xsl

<xsl:stylesheet xmlns:xsl="" 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">

  <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"/>

Change the logout button:


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


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

You can contact pete with questions at

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

© Copyright Micro Focus or one of its affiliates