openldap/doc/man/man3/ldap_compare.3

80 lines
2.0 KiB
Groff
Raw Normal View History

2002-06-13 11:59:10 +08:00
.TH LDAP_COMPARE 3 "RELEASEDATE" "OpenLDAP LDVERSION"
1999-09-12 12:41:47 +08:00
.\" $OpenLDAP$
2007-01-03 04:00:42 +08:00
.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved.
1999-09-12 12:41:47 +08:00
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
1998-08-09 08:43:13 +08:00
.SH NAME
ldap_compare, ldap_compare_s, ldap_compare_ext, ldap_compare_ext_s \- Perform an LDAP compare operation.
2002-06-21 15:32:54 +08:00
.SH LIBRARY
2002-06-22 05:25:38 +08:00
OpenLDAP LDAP (libldap, -lldap)
1998-08-09 08:43:13 +08:00
.SH SYNOPSIS
.nf
.ft B
#include <ldap.h>
.LP
.ft B
2006-06-19 16:10:02 +08:00
int ldap_compare_ext(
.RS
1998-08-09 08:43:13 +08:00
.ft B
2006-06-19 16:10:02 +08:00
LDAP *\fIld\fB,
char *\fIdn\fB,
char *\fIattr\fB,
const struct berval *\fIbvalue\fB,
LDAPControl **\fIserverctrls\fB,
LDAPControl **\fIclientctrls\fB,
int *\fImsgidp\fB );
.RE
.LP
.ft B
2006-06-19 16:10:02 +08:00
int ldap_compare_ext_s(
.RS
.ft B
2006-06-19 16:10:02 +08:00
LDAP *\fIld\fB,
char *\fIdn\fB,
char *\fIattr\fB,
const struct berval *\fIbvalue\fB,
LDAPControl **\fIserverctrls\fB,
LDAPControl **\fIclientctrls\fB );
.RE
1998-08-09 08:43:13 +08:00
.SH DESCRIPTION
The
2006-06-19 16:10:02 +08:00
.B ldap_compare_ext_s()
routine is used to perform an LDAP compare operation synchronously.
It takes \fIdn\fP, the DN of the entry upon which to perform the
compare, and \fIattr\fP and \fIvalue\fP, the attribute description and
value to compare to those found in the entry. It returns a code, which
1998-08-09 08:43:13 +08:00
will be LDAP_COMPARE_TRUE if the entry contains the attribute value and
2006-06-19 16:10:02 +08:00
LDAP_COMPARE_FALSE if it does not. Otherwise, an error code is
returned that indicates the nature of the problem. See
.BR ldap (3)
for details.
1998-08-09 08:43:13 +08:00
.LP
The
2006-06-19 16:10:02 +08:00
.B ldap_compare_ext()
1998-08-09 08:43:13 +08:00
routine is used to perform an LDAP compare operation
asynchronously. It takes the same parameters as
2006-06-19 16:10:02 +08:00
.BR ldap_compare_ext_s() ,
but provides the message id of the request it initiated in the
integer pointed to \fImsgidp\fP. The result of
1998-08-09 08:43:13 +08:00
the compare can be obtained by a subsequent call to
.BR ldap_result (3).
.LP
2006-06-19 16:10:02 +08:00
Both routines allow server and client controls to be specified to
extend the compare request.
.SH DEPRECATED INTERFACES
The routines
.BR ldap_compare ()
and
2006-06-19 16:10:02 +08:00
.BR ldap_compare_s ()
are deprecated in favor of
.BR ldap_compare_ext ()
and
.BR ldap_compare_ext_s (),
respectively.
.LP
.so Deprecated
1998-08-09 08:43:13 +08:00
.SH SEE ALSO
.BR ldap (3),
.BR ldap_error (3)
1998-10-25 09:41:42 +08:00
.SH ACKNOWLEDGEMENTS
2006-06-19 16:10:02 +08:00
.so ../Project