![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 515](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675515.webp)
Using ldapsearch
Appendix
B
Finding Directory Entries
515
ldapsearch Command-Line Format
When you use
ldapsearch
, you must enter the command using the following
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 521. Do not specify a search filter if you are supplying
search filters in a file using the
-f
option.
•
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 519. 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).
Commonly Used ldapsearch Options
The following table lists the most commonly used
ldapsearch
command-line
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"
.
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
command.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...