avoid crash in LDAP Settings