Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-5801

ldap operation fails with "49 Invalid Credentials" when bindDN of 'cn=Directory Manager' is supplied in a properties file.

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Labels:
    • Story Points:
      0.5
    • Support Ticket IDs:

      Description

      To reproduce on 6.5:

      1. Create a properties file with the contents:
        ldapsearch.hostname=localhost
        ldapsearch.port=1389
        ldapsearch.bindDN=cn=Directory Manager
        ldapsearch.bindPassword=password
        
      1. Perform an ldap operation, for example:
        $ bin/ldapsearch --propertiesFilePath ldif/test.properties -b dc=example,dc=com "(objectClass=*)"
        
        The LDAP bind request failed: 49 (Invalid Credentials)
        

        According to the access log:

        [07/Dec/2018:17:17:53 +0000] BIND RES conn=15 op=0 msgID=1 result=49 authFailureReason="Invalid Credentials: Unable to bind to the Directory Server using simple authentication because that user does not have a password" authDN="" etime=2
        

      Note that the above works fine on DS 6.0.

       

      Also, it works when providing the bindDN along with the command; like the following:

      $ bin/ldapsearch --propertiesFilePath ldif/test.properties -D "cn=Directory Manager" -b dc=example,dc=com "(objectClass=*)"
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gaetan Gaetan Boismal
                Reporter:
                akhil.kommadath Akhil Kommadath
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: