How Do You Troubleshoot an ldapsearch -x command Returning “No such object”?

Problem scenario
You want to test your OpenLDAP configuration.  You run an "ldapsearch -x" command in hope that it wil l return a "Success."  You run the "ldapsearch -x" command, and you see this:

"# search result
search: 2
result: 32 No such object"

What should you do?

Verify your /etc/ldap/ldap.conf is configured correctly.  The BASE stanza should have one or possibly three "dc=" entries separated by commas.

The URI stanza should have FQDNs or internal IP addresses depending on your configuration.  Here is an example of such stanzas from a working ldap.conf file (from a Linux server in Google Cloud Platform):

BASE    dc=c,dc=brave-fudge-193019,dc=internal
URI     ldap:// ldap://

Leave a comment

Your email address will not be published. Required fields are marked *