📄 ldap_compare.3
字号:
.TH LDAP_COMPARE 3 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_compare.3,v 1.13.2.4 2007/01/02 21:43:44 kurt Exp $.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply. See COPYRIGHT/LICENSE..SH NAMEldap_compare, ldap_compare_s \- Perform an LDAP compare operation.SH LIBRARYOpenLDAP LDAP (libldap, -lldap).SH SYNOPSIS.nf.ft B#include <ldap.h>.LP.ft Bint ldap_compare_s(ld, dn, attr, value).ftLDAP *ld;char *dn, *attr, *value;.LP.ft Bint ldap_compare(ld, dn, attr, value).ftLDAP *ld;char *dn, *attr, *value;.SH DESCRIPTIONThe.B ldap_compare_s()routine is used to perform an LDAP compare operationsynchronously. It takes \fIdn\fP, the DN of the entry upon which to performthe compare, and \fIattr\fP and \fIvalue\fP, the attribute type and value tocompare to those found in the entry. It returns an LDAP error code, whichwill be LDAP_COMPARE_TRUE if the entry contains the attribute value andLDAP_COMPARE_FALSE if it does not. Otherwise, some error code is returned..LPThe.B ldap_compare()routine is used to perform an LDAP compare operationasynchronously. It takes the same parameters as.BR ldap_compare_s() ,but returns the message id of the request it initiated. The result ofthe compare can be obtained by a subsequent call to.BR ldap_result (3)..SH ERRORS.B ldap_compare_s()returns an LDAP error code which can be interpretedby calling one of.BR ldap_perror (3)and friends. ldap_compare() returns-1 if something went wrong initiating the request. It returns thenon-negative message id of the request if things went ok..SH BUGSThere is no way to compare binary values, but there should be..SH SEE ALSO.BR ldap (3),.BR ldap_error (3).SH ACKNOWLEDGEMENTS.B OpenLDAPis developed and maintained by The OpenLDAP Project (http://www.openldap.org/)..B OpenLDAPis derived from University of Michigan LDAP 3.3 Release.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -