added wrapper for ldap compare function