You can start by running:
Code:
ldapsearch -x -b 'dc=domain,dc=com' '(objectclass=*)'
for anonymous search, or
Code:
ldapsearch -x -D "cn=admin,dc=domain,dc=com" -W 'dc=domain,dc=com' '(objectclass=*)'
for a search using the admin credentials, if you don't allow anonymous searches.
Both will return all the existing entries. If you want to search something specific use the results of the previous commands as attributes reference. For example if you want to find all uids and email addresses you can run:
Code:
ldapsearch -x -b 'dc=domain,dc=com' '(objectclass=*)' uid mail
Regards