Small fix: Check properly if LDAP setting is defined.