#include <ldap.h> int ldap_compare_s( LDAP *ld, const char *dn, const char *attr, const char *value)
The ldap_compare_s() function is used to perform an LDAP compare operation. The API uses as input the distinguished name (DN) of the entry on which to perform the compare, and uses an attr and value (the attribute type and value to compare to those found in the entry).
Binary values are not supported by this API. Use ldap_compare_ext_s() if binary values must be compared. ldap_compare_s() is a synchronous request.
No i5/OS authority is required. All authority checking is done by the LDAP server.
The ldap_compare_s() API will return an LDAP error code if not successful. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be sent from this function.
Message ID | Error Message Text |
---|---|
CPF3CF2 E | Error(s) occurred during running of ldap_compare_s API. |
Top | LDAP APIs | APIs by category |