(PHP 4 >= 4.0.2, PHP 5, PHP 7)
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.
Parameters:
link_identifier
An LDAP link identifier, returned by ldap_connect().