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.