PHP. Руководство по PHP. 2005
ldap_compare
ldap_compare
Description
mixed ldap_compare (resource link_identifier, string dn, string attribute, string value)Returns TRUE if value matches otherwise returns FALSE. Returns -1 on error.
ldap_compare() is used to compare value
of attribute to value of same attribute in LDAP directory
entry specified with dn.
The following example demonstrates how to check whether or not given password matches
the one defined in DN specified entry.
Внимание |
ldap_compare() can NOT be used to compare BINARY values! |
Замечание:
This function was added in 4.0.2.