LDAP_COMPARE(3) Library Functions Manual LDAP_COMPARE(3)NAME
ldap_compare, ldap_compare_s - Perform an LDAP compare operation
LIBRARY
OpenLDAP LDAP (libldap, -lldap)
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.1.X RELEASEDATE LDAP_COMPARE(3)
Check Out this Related Man Page
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)
Hi
I am writing a unix program. In that, i should compare two dates.
I would like to know how to compare two dates in unix-whether they are same or not.
pls help (5 Replies)
I'm still new in Unix programming using shell..so i'll like to know how to compare the virables then dispaly it..as example..compare a list of price and dispaly the most cheap...anyone...please....tq :D (4 Replies)
Hi all,
I am trying to compare two strings/dates, but its throwing error::Syntax error at line 5:
Please help !!
Any alternate way to compare two dates is also fine....
logdate1=`date -u '+%Y.%m.%d %T'`
sleep 5
logdate2=`date -u '+%Y.%m.%d %T'`
if test... (5 Replies)
Hi experts
i got a problem
currently i want to compare files in two different directories
eg
inside A got
1
2
3
4
inside B got
1
2
3
after compare, i wish to remove 1,2,3 inside the folder A
i try to google some code, like using diff, but i still cannot make up a success... (5 Replies)
Hi everybody,
I have a file that looks like:
A B C D -1 0
E F G H -2 0
I J K L +1
M N O P -6
I would like to compare $5 of every line. If both values are negative, I calculate a mean value and write the first line and delete the second one. If the two $5 values are different only... (6 Replies)
Hi
I have a requirement to process number of files matching a criteria. The resulted file would be processed indivdually looking for a particular string until another one found lines afterwards. Then look for the occurrence of another string in the result count and display/return the result. ... (13 Replies)
Hello! I'm trying to compare a number extracted from a text file and compare with a number, but it doesn't works correctly.
My text file contains this
time= 236s
I capture this with a regullar expression and parse the string with this code
_1index=match($0, //)
cad1=substr($0,... (5 Replies)
Hey!!
I'm having a hard time getting this to work!
I need to input a name and compare that name to a file in the file the name has a code on the same line as it, what i need is to compare the input name with the file and then output the code to a other file.
Ex:
... (16 Replies)
Hi,
I am trying to compare two dates but its not giving me desired results.
date1=8-Feb-10
date2=31-Jan-10
export date1
export date2
if
then
echo "$date1 is greater than $date2"
else
echo "$date2 is greater than or equal to $date1"
fi
The result it give is:
31-Jan-10 is... (4 Replies)
I have two files which have primary key(s) for each row.
I need to compare both the files and produce the output in the following format.
Primary key(s),file1 value,file2 value.
Both the input files will be comma separated files.
I have accomplished this using perl, but it is... (6 Replies)
Hello,
I have two files A and B .A file consist of the words that user will put whereas file B consist of all user's LDAP a/c.I want here that if user don't mention LDAP a/c in comment than it will exit otherwise success.
File A.I have a solution that I will modify the file A ...just save the... (9 Replies)
Hi Gurus,
I need to compare two file contents and log the difference. the detail as below:
in current directory there is file
abc20140728_1020.txt
abc20140728_1110.txt
I need to find the files which created within 60 minutes first then compare the contents.
I am able to use find... (12 Replies)
Hello,
I'm currently trying to mix local and LDAP users on an AIX 7.1.
I've triied many things.
My LDAP Server in on a CentOS - OpenLDAP (which works fine with linux).
I'm currently stuck on AIX at how to declare LDAP AND Local users.
Here's what i did :
/usr/sbin/mksecldap -c -h 'ldap03'... (15 Replies)