Unix and Linux Discussions Tagged with compare |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
13,944 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
112,275 |
Shell Programming and Scripting |
|
|
|
10 |
99,456 |
Shell Programming and Scripting |
|
|
|
4 |
9,112 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
10,409 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
12,850 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,838 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
7,354 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
6,581 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,480 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,239 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,451 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,816 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,048 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,829 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
4,442 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,162 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,162 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
5,958 |
Shell Programming and Scripting |
|
|
|
7 |
5,247 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
7,443 |
Shell Programming and Scripting |
|
|
|
2 |
6,511 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
8,511 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
3,769 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
3,038 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,466 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
13,028 |
Ubuntu |
|
|
|
1 |
14,669 |
Answers to Frequently Asked Questions |
|
|
|
2 |
6,037 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
2,979 |
Shell Programming and Scripting |
|
|
|
3 |
2,168 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,088 |
Shell Programming and Scripting |
|
|
|
4 |
1,896 |
Shell Programming and Scripting |
|
|
|
4 |
3,481 |
Shell Programming and Scripting |
|
|
|
9 |
2,519 |
Shell Programming and Scripting |
|
|
|
6 |
7,565 |
Shell Programming and Scripting |
|
|
|
9 |
29,631 |
Shell Programming and Scripting |
|
|
|
5 |
15,136 |
Shell Programming and Scripting |
|
|
|
7 |
3,068 |
Shell Programming and Scripting |
|
|
|
4 |
1,756 |
Shell Programming and Scripting |
LDAP_COMPARE(3) Library Functions Manual LDAP_COMPARE(3)
NAME
ldap_compare, ldap_compare_s - Perform an LDAP compare operation
SYNOPSIS
#include <ldap.h>
int ldap_compare_s(ld, dn, attr, value)
LDAP *ld;
char *dn, *attr, *value;
int ldap_compare(ld, dn, attr, value)
LDAP *ld;
char *dn, *attr, *value;
DESCRIPTION
The ldap_compare_s() routine is used to perform an LDAP compare operation synchronously. It takes dn, the DN of the entry upon which to
perform the compare, and attr and value, the attribute type and value to compare to those found in the entry. It returns an LDAP error
code, which will be LDAP_COMPARE_TRUE if the entry contains the attribute value and LDAP_COMPARE_FALSE if it does not. Otherwise, some
error code is returned.
The ldap_compare() routine is used to perform an LDAP compare operation asynchronously. It takes the same parameters as ldap_compare_s(),
but returns the message id of the request it initiated. The result of the compare can be obtained by a subsequent call to ldap_result(3).
ERRORS
ldap_compare_s() returns an LDAP error code which can be interpreted by calling one of ldap_perror(3) and friends. ldap_compare() returns
-1 if something went wrong initiating the request. It returns the non-negative message id of the request if things went ok.
BUGS
There is no way to compare binary values, but there should be.
SEE ALSO
ldap(3), ldap_error(3)
ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan
LDAP 3.3 Release.
OpenLDAP 2.0.27-Release 22 September 1998 LDAP_COMPARE(3)