ldapsearch Examples
481
Option
Description
base
searches only the entry specified in the
-b
option or defined by the
LDAP_BASEDN
environment variable.
one
searches only the immediate children of the
entry specified in the
-b
option. Only the children
are searched; the actual entry specified in the
-b
option is not searched.
sub
searches the entry specified in the
-b
option
and all of its descendants; that is, perform a
subtree search starting at the point identified in
the
-b
option. This is the default.
-w
Gives the password associated with the
distinguished name that is specified in the
-D
option. If this option is not specified, anonymous
access is used. For example,
-w diner892
.
-x
Specifies that the search results are sorted on
the server rather than on the client. This is useful
for sorting according to a matching rule, as with
an international search. In general, it is faster to
sort on the server rather than on the client.
-z
Sets the maximum number of entries to return
in response to a search request. For example,
-z 1000
. Normally, regardless of the value
specified here,
ldapsearch
never returns more
entries than the number allowed by the server's
nsslapd-sizelimit
attribute. However,
this limitation can be overridden by binding
as the root DN when using this command-line
argument. When binding as the root DN, this
option defaults to zero (
0
). The default value
for the
nsslapd-sizelimit
attribute is
2000
entries.
For detailed information on all
ldapsearch
utility options, refer to the
Directory Server Configuration,
Command, and File Reference
.
B.2.4. ldapsearch Examples
The next set of examples assumes the following:
• The search is for all entries in the directory.
• The directory is configured to support anonymous access for search and read. This means that
no bind information has to be supplied in order to perform the search. For more information on
anonymous access, see
Section 6.4.2, “Defining User Access - userdn Keyword”
.
• The server is located on a host named
mozilla
.
• The server uses port number
389
. Since this is the default port, the port number does not have to
be sent in the search request.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...