Description
This is an LDAP utility that performs compare queries and prints a message whether the result returned a match or not. This utility opens a connection to an LDAP directory server, binds, and performs the comparison specified on the command line or from a specified file.
Syntax
[Expert@MGMT:0]# ldapcompare [-d <Debug Level>] [<Options>] <DN> {<Attribute> <Value> | <Attribute> <Base64 Value>} |
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). |
|
See the tables below. |
|
Specifies the Distinguished Name. |
|
Specifies the assertion attribute. |
|
Specifies the assertion value. |
<Base64 Value> |
Specifies the Base64 encoding of the assertion value. |
Compare options:
Option |
Description |
|
Specifies the compare extensions. Note - The exclamation sign "!" indicates criticality. For example: |
|
Enables the Manage DSA IT control. Use the |
|
Specifies the LDAP protocol version. Default version is 3. |
|
Enables the quiet mode. The command does not print anything. You can use the command return values. |
Common options:
Option |
Description |
|
Specifies the LDAP Server administrator Distinguished Name. |
|
Specifies the general extensions: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note - The exclamation sign "!" indicates criticality. |
|
Specifies the LDAP Server computer by its IP address or resolvable hostname. |
|
Specifies the LDAP Server Uniform Resource Identifier(s). |
|
Specifies to use the SASL Interactive mode. |
|
Dry run - shows what would be done, but does not actually do it. |
|
Specifies not to use the reverse DNS to canonicalize SASL host name. |
|
Specifies the general options:
|
|
Specifies the SASL security properties. |
|
Specifies the LDAP Server port. Default is 389. |
|
Specifies to use the SASL Quiet mode. |
|
Specifies the SASL realm. |
|
Specifies the SASL authentication identity. |
|
Runs in verbose mode (prints the diagnostics to stdout). |
|
Prints version information (use the |
|
Specifies the LDAP Server administrator password (for simple authentication). |
|
Specifies to prompt the user for the LDAP Server administrator password. |
|
Specifies to use simple authentication. |
|
Specifies the SASL authorization identity (either " |
|
Specifies to read the LDAP Server administrator password from the |
|
Specifies the SASL mechanism. |
|
Specifies to start the TLS request. Use the |