testing ldap if condition