I have a GSA 6 configured to serve both public and secure results. I'm
using basic / ntlm and forms authentication for authentication.
Is it possible to know the username of the current logged in user
after he authenticates to the appliance ?
Alternatively, if it's not possible to do that with basic/ ntlm and
forms, can it be done using SAML ?
GSA 6 comes with the code below on the default stylesheet, in which it
references a /GSP/LOGIN element (which appears to do what I need), but
I can't find any reference to that element on the documentation... and
when viewing the XML results that element isn't there...
<!--
**********************************************************************
Shown sign-in/sign-out links at the top of the /search page
**********************************************************************
-->
<xsl:template name="sign_in">
<xsl:call-template name="search_home_script"/>
<div class="personalization" width="100%" align="right">
<xsl:text disable-output-escaping='yes'><a
href='javascript:getHomeUrl();'>My Alerts</a></xsl:text>
</div>
</xsl:template>
<xsl:template name="signed_in">
<xsl:call-template name="search_home_script"/>
<div class="personalization" width="100%" align="right">
<b><xsl:value-of select="/GSP/LOGIN" /></b> |
<xsl:text disable-output-escaping='yes'><a
href='javascript:getHomeUrl();'>My Alerts</a></xsl:text> |
<xsl:text disable-output-escaping='yes'><a href='/uam?
action=Logout'>Sign Out</a></xsl:text>
</div>
</xsl:template>
<xsl:template name="personalization">
<xsl:if test="$show_alerts2 = '1'">
<xsl:choose>
<xsl:when test="/GSP/PERSONALIZATION">
<xsl:choose>
<xsl:when test="/GSP/LOGIN"><xsl:call-template name="signed_in"/
></xsl:when>
<xsl:otherwise><xsl:call-template name="sign_in" /></
xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:template>
Thanks in advance,
Pedro Jacinto