users@glassfish.java.net

Re: LDAP user informations

From: V B Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Mon, 27 Aug 2007 16:12:28 +0530

glassfish_at_javadesktop.org wrote:

>Hi,
>
>I have an application which authenticate against an LDAP directory with a LDAPRealm.
>
>Can I get more informations about the user who logged in ?
>
>The LDAP entry is a person and I want to display informations about the user who logged in.
>
>
There is getCallerPrincipal() on EJBContext and getUserPrincipal() on
HttpServletRequest , have you tried them ?.

Thanks.

>Is there something what I can reuse or do I have to make my one ldap query?
>
>Regards
>Volker Jordan
>[Message sent by forum member 'vjordan' (vjordan)]
>
>http://forums.java.net/jive/thread.jspa?messageID=232494
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>