Make sure we don't run into a redirect loop when LDAP is not available.