Minor improvement to LDAP configuration, fixes #217