1 .TH LDAP_COMPARE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2017 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_compare, ldap_compare_s, ldap_compare_ext, ldap_compare_ext_s \- Perform an LDAP compare operation.
8 OpenLDAP LDAP (libldap, \-lldap)
21 const struct berval *\fIbvalue\fB,
22 LDAPControl **\fIserverctrls\fB,
23 LDAPControl **\fIclientctrls\fB,
28 int ldap_compare_ext_s(
34 const struct berval *\fIbvalue\fB,
35 LDAPControl **\fIserverctrls\fB,
36 LDAPControl **\fIclientctrls\fB );
40 .B ldap_compare_ext_s()
41 routine is used to perform an LDAP compare operation synchronously.
42 It takes \fIdn\fP, the DN of the entry upon which to perform the
43 compare, and \fIattr\fP and \fIvalue\fP, the attribute description and
44 value to compare to those found in the entry. It returns a code, which
45 will be LDAP_COMPARE_TRUE if the entry contains the attribute value and
46 LDAP_COMPARE_FALSE if it does not. Otherwise, an error code is
47 returned that indicates the nature of the problem. See
53 routine is used to perform an LDAP compare operation
54 asynchronously. It takes the same parameters as
55 .BR ldap_compare_ext_s() ,
56 but provides the message id of the request it initiated in the
57 integer pointed to \fImsgidp\fP. The result of
58 the compare can be obtained by a subsequent call to
61 Both routines allow server and client controls to be specified to
62 extend the compare request.
63 .SH DEPRECATED INTERFACES
68 are deprecated in favor of
69 .BR ldap_compare_ext ()
71 .BR ldap_compare_ext_s (),