How to configure ldap settings correctly