ldapsearch
Description
This is an LDAP utility that queries an LDAP directory and returns the results.
|
Notes:
|
Syntax
|
Parameters
Parameter |
Description |
---|---|
|
Runs the command in debug mode with the specified TDERROR debug level. Valid values are from 0 (disabled) to 5 (maximal level, recommended). |
|
Specifies the LDAP Server computer by its IP address or resolvable hostname. If you do not specify the LDAP Server explicitly, the command connects to |
|
Specifies the LDAP Server port. Default is 389. |
|
Specifies the LDAP Server administrator Distinguished Name. |
|
Specifies the LDAP Server administrator password. |
|
Specifies to retrieve attribute names only, without values. |
|
Specifies not to suppress the printing of non-ASCII values. |
|
Specifies the Base Distinguished Name (DN) for search. |
|
Specifies the print separator character between attribute names and their values. The default separator is the equal sign ( |
|
Specifies the Server side time limit for LDAP operations, in seconds. Default is " |
|
Specifies the search scope. One of these:
|
|
Specifies to sort the results by the values of this attribute. |
|
Specifies to write values to files in the Writes each <attribute>-<value> pair to a separate file named:
For example, for the
|
|
Specifies the Client side timeout for LDAP operations, in milliseconds. Default is |
|
Specifies to show user-friendly entry names in the output. For example: shows instead of |
|
Specifies the maximal number of entries to search on the LDAP Server. |
|
Specifies to use SSL connection. |
|
LDAP search filter compliant with RFC-1558. For example:
|
|
Specifies the list of attributes to retrieve. If you do not specify attributes explicitly, then the command retrieves all attributes. |
Example
|
With this syntax, the command:
-
Connects to the LDAP Server to port 18185.
-
Connects to the LDAP Server with Base DN "
cn=omi
". -
Queries the LDAP directory for "
fw1host
" objects. -
For each object found, prints the value of its "
objectclass
" attribute.