|
PHP5中文手册
ldap_compare(PHP 4 >= 4.0.2, PHP 5) ldap_compare — Compare value of attribute found in entry specified with DN 说明
mixed ldap_compare
( resource $link_identifier
, string $dn
, string $attribute
, string $value
)
Compare value of attribute with value of same attribute in an LDAP directory entry. 参数
返回值Returns TRUE if value matches otherwise returns FALSE. Returns -1 on error. 范例The following example demonstrates how to check whether or not given password matches the one defined in DN specified entry.
Example#1 Complete example of password check
<?php 注释Warning
ldap_compare() can NOT be used to compare BINARY values! |