When I use a command:
ldapsearch -x '(objectclass=*)' -W -D "cn=admin, dc=example, dc=com"
all works good.
But when I add BINDDN into the /etc/ldap/ldap.conf file, and try to use:
ldapsearch -x '(objectclass=*)' -W
I've got an error:
ldap_bind: Invalid credentials (49)