Red Hat Directory Server 8.0 Configuration, Command, and File Reference

Command-Line Utility Description
on this tool, see appendix A in the Directory
Server Administrator's Guide.
dbscan Analyzes and extracts information from a
Directory Server database file.
Table 6.1. Commonly-Used Command-Line Utilities
4. ldapsearch
ldapsearch is a configurable utility that locates and retrieves directory entries via LDAP. This
utility opens a connection to the specified server using the specified distinguished name and
password and locates entries based on a specified search filter. Search scopes can include a
single entry, an entry's immediate subentries, or an entire tree or subtree. Search results are
returned in LDIF format.
Syntax
Commonly-Used ldapsearch Options
SSL Options
SASL Options
Additional ldapsearch Options
Syntax.
ldapsearch [ -b basedn ] [ optional_options ] [ filter ] [ optional_list_of_attributes ]
For any value that contains a space ( ), the value should be enclosed in double quotation
marks. For example:
-b "ou=groups, dc=example,dc=com"
Option Description
optional_options A series of command-line options. These
must be specified before the search filter, if
used.
filter An LDAP search filter as described in
Directory Server Administrator's Guide. Do
not specify a search filter if search filters are
supplied in a file using the -f option.
ldapsearch
197