How To Search LDAP using ldapsearch (With Examples)

Whether this is on a Windows domain controller, or on a Linux OpenLDAP server, the LDAP protocol is very useful to centralize authentication. However, as your LDAP directory grows, you might get lost in all the entries that you may have to manage. Luckily, there is a command that will help you search for entries in a LDAP directory tree : ldapsearch.