Red Hat Directory Server 8.0 Configuration, Command, and File Reference
Option Description
optional_list_of_attributes A list of space-separated attributes that
reduce the scope of the attributes returned in
the search results. This list of attributes must
appear after the search filter. For a usage
example, see the Directory Server
Administrator's Guide. If a list of attributes is
not specified, the search returns values for all
attributes permitted by the access control set
in the directory with the exception of
operational attributes.
Table 6.2. ldapsearch Syntax
To return operational attributes as a result of a search operation, they must be explicitly
specified in the search command. To retrieve regular attributes along with explicitly-specified
operational attributes, specify an asterisk (*) in addition to the operational attributes.
Commonly-Used ldapsearch Options.
The following table lists the most commonly used ldapsearch command-line options.
Option Description
-b
Specifies the starting point for the search. The
value specified here must be a distinguished
name that currently exists in the database.
This option is optional if the LDAP_BASEDN
environment variable has been set to a base
DN.
The value specified in this option should be
provided in double quotation marks. For
example:
-b "cn=Barbara Jensen, ou=Product
Development, dc=example,dc=com"
The root DSE entry is a special entry that
contains a list of all the suffixes supported by
the local directory. To search this entry,
supply a search base of "", a search scope of
base, and a filter of "objectclass=*". For
example:
-b "" -s base "objectclass=*"
Chapter 6. Command-Line Utilities
198