If the LDAP server allows anonymous bind, you can bind to it without providing a bind account and password

$ ldapsearch -h ldaphostname -p 389 -x -b "dc=example,dc=com"

-h hostname
-p port number
-x tells ldapsearch to perform a simple_authentication (yes, you need this even for anonymous bind)
-b baseDN

If the anonymous bind is not working try with credentials

$ ldapsearch -h ldaphostname -p 389 -x -D "uid=admin,ou=People,dc=example,dc=com" -b "dc=example,dc=com" -W