Cleaned up ldap configuration.