fix ldap config