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.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...