Ldapsearch Command-Line Format; Commonly Used Ldapsearch Options - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

ldapsearch Command-Line Format

When you use
ldapsearch
format:
ldapsearch [optional_options] [optional_search_filter] [optional_list_of_attributes]
where
optional_options represents a series of command-line options. These must be
specified before the search filter, if any.
optional_search_filter represents an LDAP search filter as described in "LDAP
Search Filters," on page 508. Do not specify a search filter if you are supplying
search filters in a file using the
optional_list_of_attributes represents a list of attributes separated by a space.
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 507. 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).
If you want operational attributes returned as a result of a search
NOTE
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
option.
-f
command.
.
command-line
ldapsearch
Appendix B
Finding Directory Entries
Using ldapsearch
503

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents