How to enable Integrated Authentication (to get rid of Sign in)?

Topics: Enhanced Blog Edition, General/Misc.
Oct 13, 2008 at 5:46 PM
Hi,

I installed CKS:EBE Extensions feature and I am able to see SharePoint CKS:EBE 2.0 site created.

I am able to see the Sign In link on top of the site. In my SharePoint application, I am using NTLM and want the same user name to be displayed in the Sign In link place when the user comes from other sites.

I searched a lot in the site sittings but could not find any.

Please advise me how i can do this.

Thanks
Developer
Oct 13, 2008 at 10:25 PM
Hi,

You can do this in the XSL. Look for the AdminLinks.xsl file in your theme, this is where the 'Sign In' link is produced.

<xsl:template match="/">

 <xsl:if test="$IsBlogOwner = 'True'">
  <xsl:apply-templates select="AdminLinks"/>
 </xsl:if>

 <xsl:if test="$IsBlogOwner != 'True'">
  <a>
   <xsl:attribute name="href">
    <xsl:value-of select="$RelativeUrl"/>/_layouts/authenticate.aspx?ReturnUrl=<xsl:value-of select="$RelativeUrl"/>
   </xsl:attribute>
   Sign In
  </a><br/>
 </xsl:if>

</xsl:template>

You would need to add an <xsl:param name="CurrentUserName" at the the top of the file (with the others). The EBE passes a number of parameters to the transformation.

You could then do someting like...

<xsl:choose>
<xsl:when test="$CurrentUserName and $CurrentUserName != ''">
    Welcome <xsl:value-of select="$CurrentUserName"/>
</xsl:when>
<xsl:otherwise>
  <a>
   <xsl:attribute name="href">
    <xsl:value-of select="$RelativeUrl"/>/_layouts/authenticate.aspx?ReturnUrl=<xsl:value-of select="$RelativeUrl"/>
   </xsl:attribute>
   Sign In
  </a><br/>
</xsl:otherwise>
</xsl:choose>

HTH, Vince
http://blog.thekid.me.uk

Oct 16, 2008 at 3:01 PM
Thanks. Your reply helped me a lot.