1 Reply Latest reply on Sep 13, 2006 4:25 PM by markash

    LDAP Security Domain - Mapping DN ?

    rsoika

      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