Software >> Services >> LDAP >> tools >> ldapsearch >>  What are example usage of ldapsearch

(1) To return all attributes of all entries from example.com without login

# ldapsearch -h hostname -p port   -b dc=example,dc=com "(objectclass=*)"

(2) To return specific attribute of all entries from example.com

# ldapsearch -h hostname -p port   -b dc=example,dc=com "(objectclass=*)" attribute

eg.

# ldapsearch -h hostname -p port   -b dc=example,dc=com "(objectclass=*)" cn

 

 

Deals @yubeshop.com