Ldapsearch Command-Line Format; Commonly Used Ldapsearch Options - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Depending on your command-line interpreter, use either single or double
quotation marks for this purpose. Refer to your operating system documentation
for more information.

ldapsearch Command-Line Format

When you use
ldapsearch
format:
ldapsearch [optional_options] [optional_search_filter] [optional_list_of_attributes]
where
represents a series of command-line options. These must be
optional_options
specified before the search filter, if any.
optional_search_filter
Search Filters," on page 595. Do not specify a search filter if you are supplying
search filters in a file using the
optional_list_of_attributes
Specifying a list of attributes reduces the number of attributes returned in the
search results. This list of attributes must appear after the search filter. For an
example, see "Displaying Subsets of Attributes," on page 593. If you do not
specify a list of attributes, the search returns values for all attributes permitted
by the access control set in the directory (with the exception of operational
attributes).
NOTE
If you want operational attributes returned as a result of a search
operation, you must explicitly specify them in the search command.
To retrieve regular attributes in addition to explicitly specified
operational attributes, use an asterisk (*) in the list of attributes in
the
ldapsearch

Commonly Used ldapsearch Options

The following table lists the most commonly used
options. If you specify a value that contains a space [ ], the value should be
surrounded by double quotation marks; for example,
-b "ou=groups, dc=example,dc=com"
, you must enter the command using the following
represents an LDAP search filter as described in "LDAP
option.
-f
represents a list of attributes separated by a space.
command.
.
command-line
ldapsearch
Appendix B
Finding Directory Entries
Using ldapsearch
589

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 7.1

Table of Contents