ldapcompare
ldapcompare opens a connection to an LDAP server, binds, and performs a compare using specified parameters. The DN should be a 'Distinguished Name' in the directory. ATTRIBUTE should be a known attribute. If followed by one colon, the assertion value should be provided as a string. If followed by two colons, the base64 encoding of the value is provided. The result code of the compare is provided as the exit code and, unless ran with -z, the program prints TRUE, FALSE, or UNDEFINED on standard output.[1]
Documentation
- man 1 'ldapcompare' [EN]
Syntax
ldapcompare [PARAMETER ...] DN ATTRIBUTE
Parameters
- -D BINDDN
- Use the 'Distinguished Name' BINDDN to bind to the LDAP directory.
- -W
- Prompt for simple authentication. This is used instead of specifying the password on the command line.
- -x
- Use simple authentication instead of SASL.
- -Z[Z]
- Issue StartTLS (Transport Layer Security) extended operation. If you use -ZZ, the command will require the operation to be successful.
References
- ↑ man 1 'ldapcompare'