Description ldapcompare
is used to perform compare queries that prints a message whether the result returned a match or not. ldapcompare
opens a connection to an LDAP directory server, binds, and performs the comparison specified on the command line or from a specified file.
Syntax
# ldapcompare -d [<options>] dn <attribute> <value>
Parameter |
Description |
---|---|
|
Debug flag |
|
See below |
|
The DN object |
|
The attribute of the DN object |
|
The value of the attribute of the DN object |
The ldapcompare
options are as follows:
-u -
Include user-friendly entry names in the output.-d <level> -
Set LDAP debugging level to "level".-F sep -
Print "sep" instead of "=" between attribute names and values.-f <file> -
Perform sequence of compares listed in "file".-D <binddn> -
Bind DN.-w <passwd> -
Bind password (for simple authentication).-h <host> -
LDAP server.-p <port> -
Port on the LDAP server.-T <timeout> -
Client side timeout for all operations (in milliseconds).-l <time limit> -
Server Side time limit (in seconds) for compare.-z <size limit> -
Server Side size limit (in entries) for compare.