Dreamscapes/Ldap/Core/Ldap.php
public function compare($dn, $attribute, $value)
    {
        $retVal = @ldap_compare($this->resource, $dn, $attribute, $value);
        $this->verifyOperation();

        return $retVal;
    }
public function compare($dn, $attribute, $value)
    {
        $retVal = @ldap_compare($this->resource, $dn, $attribute, $value);
        $this->verifyOperation();

        return $retVal;
    }
Compare value of attribute found in entry specified with DN

@param  string   $dn         The distinguished name of an LDAP entity
@param  string   $attribute  The attribute name
@param  string   $value      The compared value
@return bool                 Returns TRUE if value matches otherwise returns FALSE