[jboss-user] [Security & JAAS/JBoss] - Re: Mapping the User Name to the full DN in the LDAP Entry?

info@connext.co.za do-not-reply at jboss.com
Wed Sep 13 16:01:21 EDT 2006


Good Day,

Dynamic
----------
The principal class in JBoss by default is the SimplePrincipal which just has the user name of the authenticated user. To have the full name of the DN either the user must enter the DN instead of the sAMAccount or userName or the SimplePrincipal needs to be replaced by an implementation of Principal that contains the DN of the user populated during the login process in a subclass of LDAPLoginModule.

Static
------
If all the users of your application have a similar DN
then you can use the 
 - principalDNPrefix
 - principalDNSuffix
attributes in the LDAPLoginModule to create the DN of the user. Look at the following...
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch8.chapter.html#ch8.ldaplogin.sect




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971380#3971380

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971380



More information about the jboss-user mailing list