[jboss-user] [Security & JAAS/JBoss] - LDAP Security Domain - Mapping DN ?
rsoika
do-not-reply at jboss.com
Thu Sep 7 08:10:04 EDT 2006
Hi,
I have successfull configured a JBoss Security Domain for IBM Lotus Domino using the org.jboss.security.auth.spi.LdapLoginModule.
I can authenticate to my Demo WebApp and also searching for roles (isUserInRole) works correct.
My question is how to map the CallerPricipal to the DN.
My users cann login in by using a unique UserID (Shortname). But inside my webApp I need the full DN. But the call:
ctx.getCallerPrincipal().toString()
returns the username which the user used to login (shortname).
I can not use:
principalDNPrefix + username + principalDNSuffix;
because the username is a EmployeeID.
For Example
The Login ID is "12345"
The DN of the Username is "CN=Ralph Soika/O=MYCOMPANY"
I need that getCallerPriciapal returns the DN not the Loginname.
Can anybody give me a hint? or is it a Problem of the LDAP configuration?
Thanks for help
Ralph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970072#3970072
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970072
More information about the jboss-user
mailing list