1 .TH LDAP_COMPARE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_compare, ldap_compare_s \- Perform an LDAP compare operation
8 OpenlDAP LDAP (libldap, -lldap)
15 int ldap_compare_s(ld, dn, attr, value)
18 char *dn, *attr, *value;
21 int ldap_compare(ld, dn, attr, value)
24 char *dn, *attr, *value;
28 routine is used to perform an LDAP compare operation
29 synchronously. It takes \fIdn\fP, the DN of the entry upon which to perform
30 the compare, and \fIattr\fP and \fIvalue\fP, the attribute type and value to
31 compare to those found in the entry. It returns an LDAP error code, which
32 will be LDAP_COMPARE_TRUE if the entry contains the attribute value and
33 LDAP_COMPARE_FALSE if it does not. Otherwise, some error code is returned.
37 routine is used to perform an LDAP compare operation
38 asynchronously. It takes the same parameters as
39 .BR ldap_compare_s() ,
40 but returns the message id of the request it initiated. The result of
41 the compare can be obtained by a subsequent call to
45 returns an LDAP error code which can be interpreted
48 and friends. ldap_compare() returns
49 -1 if something went wrong initiating the request. It returns the
50 non-negative message id of the request if things went ok.
52 There is no way to compare binary values, but there should be.
58 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
60 is derived from University of Michigan LDAP 3.3 Release.