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.

base
Searches only for the specified entry.
one
Searches only the children of the entry and not the entry itself.
sub
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.

Note:

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