Announcement Announcement Module
Collapse
No announcement yet.
LDAP: error code 53 - RootDSE search supports only baseDN=, scope=base, and filter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • LDAP: error code 53 - RootDSE search supports only baseDN=, scope=base, and filter

    I'm trying to use a LDAP-server (IBM Directory-Server) to authenticate users in a Spring Application (Spring Roo).

    This is the relevant part in my applicationContext-security.xml:

    Code:
    <!-- Configure Authentication mechanism -->
    <!-- Real LDAP Server -->
    <ldap-server id="ldapServer"
        url="ldap://sdbmox.mycompany.com:389"
    />
    
    <authentication-manager alias="authenticationManager">
        <ldap-authentication-provider
            server-ref="ldapServer"
            user-dn-pattern="racfid={0},profiletype=user,ou=racf,ou=sys,o=myc"
        />
    </authentication-manager>
    When I try to login with wrong credentials this error appears:

    Your login attempt was not successful, try again. Reason: Bad credentials .
    When I try to login with correct credentials this error appears:

    Your login attempt was not successful, try again. Reason: [LDAP: error code 53 - RootDSE search supports only baseDN="", scope=base, and filter (objectclass=). Incorrect scope.]; nested exception is javax.naming.OperationNotSupportedException: [LDAP: error code 53 - RootDSE search supports only baseDN="", scope=base, and filter (objectclass=). Incorrect scope.]; remaining name
    When I add scope=base to the user-dn-pattern I always get the message Bad credentials

    What could be wrong here? The LDAP seems to be working as intended.
Working...
X