Safer check of LDAP configuration.