Description
This is an LDAP utility that queries an LDAP directory and returns the results.
Syntax
[Expert@MGMT:0]# ldapsearch [-d <Debug Level>] [-h <LDAP Server>] [-p <LDAP Port>] [-D <LDAP Admin DN>] [-w <LDAP Admin Password>] [-A] [-B] [-b <Base DN>] [-F <Separator>] [-l <LDAP Server Timeout>] [-s <Scope>] [-S <Sort Attribute>] [-t] [-T <LDAP Client Timeout>] [-u] [-z <Number of Search Entries>] [-Z] <Filter> [<Attributes>] |
Note - You must run this command from the Expert mode.
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
[Expert@MGMT:0]# ldapsearch -p 18185 -b cn=omi objectclass=fw1host objectclass |
With this syntax, the command:
cn=omi
fw1host
objectsobjectclass
attribute