diff --git a/apps/settings/utils/ldap.py b/apps/settings/utils/ldap.py index 6333f0350..afcd2dca1 100644 --- a/apps/settings/utils/ldap.py +++ b/apps/settings/utils/ldap.py @@ -652,7 +652,7 @@ class LDAPTestUtil(object): def _test_before_login_check(self, username, password): from settings.ws import CACHE_KEY_LDAP_TEST_CONFIG_TASK_STATUS, TASK_STATUS_IS_OVER if not cache.get(CACHE_KEY_LDAP_TEST_CONFIG_TASK_STATUS): - raise self.LDAPBeforeLoginCheckError(_('Please test the connection first')) + self.test_config() backend = LDAPAuthorizationBackend() ok, msg = backend.pre_check(username, password)