Server User Manual

ldapsearch
243
Option Description
installed. If a host is not specified, ldapsearch
uses the local host. For example:
-h mozilla
-l Specifies the maximum number of seconds
to wait for a search request to complete. For
example:
-l 300
Regardless of the value specified here,
ldapsearch will never wait longer than is
allowed by the server's nsslapd-timelimit
attribute, unless the authenticated user is
the Directory Manager. The default value for
the nsslapd-timelimit attribute is 3600
seconds. See Section 2.3.1.106, “nsslapd-
timelimit (Time Limit)” for more information.
-p Specifies the TCP port number that the Directory
Server uses. For example:
-p 1049
The default is 389. If -Z is used, the default is
636.
-s Specifies the scope of the search. The scope
can be one of the following:
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 Specifies the password associated with the
distinguished name that is specified in the -D
option. For example:
-w diner892
If this option is not specified, anonymous access
is used.