3 Replies Latest reply on Feb 14, 2013 10:14 AM by foxwake

    Jboss7 LDAP configuration Problem

    foxwake

      I have a problem when configuring the ldap,

       

      Processing Failed:Search of baseDN(ou=people,dc=mycompany,dc=com) found no matches

      I have check and th user is uid=user,ou=people,dc=mycompany,dc=com

       

      any ideas?

       

      thanks in advance

       

      I have configure exactly like this

      <security-domain name="LDAP" cache-type="default">

                          <authentication>

                              <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">

                                  <module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>

                                  <module-option name="java.naming.provider.url" value="ldap://10.10.10.10:389"/>

                                  <module-option name="bindDN" value="cn=Manager,dc=mycompany,dc=com"/>

                                  <module-option name="bindCredential" value="password"/>

                                  <module-option name="baseCtxDN" value="ou=people,dc=mycompany,dc=com"/>

                                  <module-option name="baseFilter" value="uid={0},ou=people,dc=mycompany,dc=com"/>

                                  <module-option name="rolesCtxDN" value="ou=groups,dc=mycompany,dc=com"/>

                                  <module-option name="roleFilter" value="(uniqueMember={0})"/>

                                  <module-option name="roleNameAttributeID" value="cn"/>

                                  <module-option name="roleAttributeIsDN" value="true"/>

                                  <module-option name="allowEmptyPasswords" value="false"/>

                                  <module-option name="Context.REFERRAL" value="follow"/>

                                  <module-option name="throwValidateError" value="true"/>

                              </login-module>

                          </authentication>

                      </security-domain>

        • 1. Re: Jboss7 LDAP configuration Problem
          foxwake

          Also I have implemented the java connection and works using distinguishedName = "uid=" + user.getUsername() + "," + ou=people,dc=mycompany,dc=com;

          • 2. Re: Jboss7 LDAP configuration Problem
            foxwake

            I fix the problem but still haven been able to login, now the problem is LDAP 49,

            the solution so far was to change

            <module-option name="baseFilter" value="(uid={0})/>

            <module-option name="roleFilter" value="(member={0})"/>

             

            but dont know if the problem is the password or the role

             

            any help will be most apreciated it

            • 3. Re: Jboss7 LDAP configuration Problem
              foxwake

              I finally figure this out, the problem is in the Ldap server authentication I use OpendDJ instead of OpenLdap, but is a configuration problem OpenDJ is easier to configure for this