1 Reply Latest reply on Sep 7, 2012 9:29 AM by ritwolf

    LDAPLoginModule

    ritwolf

        Hi guys, I´m developing an application and I have the following problem: by default the login username is the CN attribute, but this has the form "Name Surname" in Active Directory by default. Can I change the behavior and use sAMAccountName attribute instead of CN, but I do not know how to do it.    

       

        Is it possible to do it configuring a specific parameter, or do I have to implement and override the org.jboss.security.auth.spi.LdapLoginModule class? If possible I would need a step-by-step instructions since I´m new to JBoss and LDAP as well. Thanks in advance.