Extracted from Pike v7.6 release 61 at 2005-12-30.
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.