Improved configuration of LDAP.