Extracted from Pike v7.6 release 87 at 2006-08-03.
pike.ida.liu.se
[Top]
Protocols
Protocols.LDAP
Protocols.LDAP.client

Method Protocols.LDAP.client()->compare()


Method compare

int compare(string dn, array(string) aval)

Description

Compares given attribute value with one in the directory.

Parameter dn

The distinguished name of compared entry.

Parameter aval

The mapping of compared attributes and theirs values.

Returns

Returns 1 on success, 0 otherwise.

Note

The API change: the returning code was changed in Pike 7.3+ to follow his logic better.