The ldapsearch tool requires the LDAP connection parameters to bind to the server, including the baseDN option to specify the starting point of the search within the server, and the search scope. The searchScope option determines the depth of the search.

Searches only for the specified entry.
Searches only the children of the entry and not the entry itself.
Searches the entry and its descendants.

The ldapsearch tool provides basic functionality specified by the RFC 2254 and provides additional features that use the PingDirectory server’s control mechanisms.


For more information, run the ldapsearch --help function.