How to get logged in User info on SP

Peter Schober peter.schober at univie.ac.at
Thu Nov 13 14:38:47 EST 2014


* Atul Bhagwat <atulabhagwat at gmail.com> [2014-11-13 20:08]:
> After successful authentication with IDP, I want to show info of currently
> loggedin user on my SP application.

Try accessing /Shibboleth.sso/Session on the SP's webserver.
And check the logs. The documentation tells you why.

Assuming the SP is on a suported platform and on something Unixoid:
/var/log/shibboleth/transaction.log should tell you about recieved
attributes.

> Is there any configuration I am missing. I am connecting through LDAP:
> 
>  <resolver:DataConnector id="myLDAP" xsi:type="dc:LDAPDirectory"
>         ldapURL="ldap://127.0.0.1:389"
>         baseDN="ou=people,dc=example,dc=com"
>         principal="cn=Directory Manager"
>         principalCredential="****">
>         <dc:FilterTemplate>
>             <![CDATA[
>                 (uid=$requestContext.principalName)
>             ]]>
>         </dc:FilterTemplate>
> 
>     </resolver:DataConnector>

That doesn't mean anything. You'll need to read more of the
documentation. Start with the links in the "IdP" box on:
https://wiki.shibboleth.net/confluence/display/SHIB2/Configuration

Also, you don't give any technical details what's wrong, what you
tried, what the logs said (on either end, IDP or SP), etc.pp.
-peter


More information about the users mailing list