How to test the LDAP configuration using LDAP search

We have packaged into the software build the OpenLDAP toolset. A ResolutionMD server administrator can use the function, LDAP search, to test/ensure that the server can bind to the authentication server and search the database for users and groups.

  1. Log in to the server using SSH (or equivalent) with root credentials.

  2. From the root folder, execute the command:

    ldapsearch –h <ldap_hostname> -b <search base> -D <bind DN> -w <bind account password> <filter>



ldapsearch -h -D 'cn=john.doe,ou=Staff,ou=Accounts,ou=PureWeb Inc,dc=pw,dc=pweb,dc=com' -w YOURPASSWORD  -b 'ou=Staff,ou=Accounts,ou=PureWeb Inc,dc=pw,dc=pureweb,dc=com' '(&(objectCategory=person)(objectClass=user)(sAMAccountname=john.doe))'