2 Replies Latest reply on Feb 23, 2005 9:42 AM by Jitendra Singh

    Different j_username and getRemoteUser

    Jitendra Singh Newbie

      I have a JAAS implementation in jboss. On the login page the user enters a login id = xxx. After j_security_check I would like the request.getRemoteUser() to return a different value. Please tell me how to accomplish this.

      Basically we are using LDAP authentication and the user should enter only xxx from uid=xxx,ou=people,dc=company,dc=com. But when anywhere later in the application, we want to call getRemoteUser() it should give us full distinguishing name (dn) i.e. uid=xxx,ou=people,dc=company,dc=com.

      Please anyone guide me to achieve this.

      Thanks in advance,