28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
diff --git a/privacyidea/lib/resolvers/LDAPIdResolver.py b/privacyidea/lib/resolvers/LDAPIdResolver.py
|
|
index ae9d87764..cfc609931 100644
|
|
--- a/privacyidea/lib/resolvers/LDAPIdResolver.py
|
|
+++ b/privacyidea/lib/resolvers/LDAPIdResolver.py
|
|
@@ -97,11 +97,6 @@
|
|
SERVERPOOL_ROUNDS = 2
|
|
# The number of seconds a non-responding server is removed from the server pool
|
|
SERVERPOOL_SKIP = 30
|
|
-# The number of seconds that ldap3 waits if no server is left in the pool, before
|
|
-# starting the next round
|
|
-pooling_loop_timeout = get_app_config_value("PI_LDAP_POOLING_LOOP_TIMEOUT", 10)
|
|
-log.info("Setting system wide POOLING_LOOP_TIMEOUT to {0!s}.".format(pooling_loop_timeout))
|
|
-ldap3.set_config_parameter("POOLING_LOOP_TIMEOUT", pooling_loop_timeout)
|
|
|
|
# 1 sec == 10^9 nano secs == 10^7 * (100 nano secs)
|
|
MS_AD_MULTIPLYER = 10 ** 7
|
|
@@ -314,6 +309,11 @@ def __init__(self):
|
|
self.serverpool_rounds = SERVERPOOL_ROUNDS
|
|
self.serverpool_skip = SERVERPOOL_SKIP
|
|
self.serverpool = None
|
|
+ # The number of seconds that ldap3 waits if no server is left in the pool, before
|
|
+ # starting the next round
|
|
+ pooling_loop_timeout = get_app_config_value("PI_LDAP_POOLING_LOOP_TIMEOUT", 10)
|
|
+ log.info("Setting system wide POOLING_LOOP_TIMEOUT to {0!s}.".format(pooling_loop_timeout))
|
|
+ ldap3.set_config_parameter("POOLING_LOOP_TIMEOUT", pooling_loop_timeout)
|
|
|
|
def checkPass(self, uid, password):
|
|
"""
|