handle ldap requirement