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
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):
URI ldap://10.142.0.2 ldap://10.142.0.2:666
You may want to see this posting.