1 Reply Latest reply on Apr 7, 2005 8:52 AM by gmeroz

    JBoss + Active Directory

    suh lee Newbie

      Has anybody successfully configured LdapLoginModule to use Active Directory? I need to use existing Active Directory to authenticate users and my initial attempt didn't work. Any tips will be greatly appreciated.

      Thanks,

      Suh

        • 1. Re: JBoss + Active Directory
          gmeroz Newbie

          update login-config.xml with the following:
          <application-policy name = "businessevents">

          <login-module code="org.jboss.security.auth.spi.LdapLoginModule"
          flag="required" >
          <module-option name="java.naming.factory.inital">com.sun.jndi.ldap.LdapCtxFactor</module-option>
          <module-option name="java.naming.provider.url">ldap://107.12.42.12.test.com:389/</module-option>
          <module-option name="java.naming.security.authentication">simple</module-option>

          <module-option name = "java.naming.security.authentication">simple</module-option>
          <module-option name="matchOnUserDN">false</module-option>
          <module-option name="principalDNSuffix">@test.com</module-option>
          <module-option name="uidAttributeID">sAMAccountName</module-option>
          <module-option name="roleAttributeID">memberOf</module-option>
          <module-option name="roleAttributeIsDN">true</module-option>
          <module-option name="roleNameAttributeID">name</module-option>
          <module-option name="rolesCtxDN">ou=QA_Users,dc=test,dc=com</module-option>

          </login-module>