1 diff --git a/privacyidea/lib/resolvers/LDAPIdResolver.py b/privacyidea/lib/resolvers/LDAPIdResolver.py
2 index ae9d87764..cfc609931 100644
3 --- a/privacyidea/lib/resolvers/LDAPIdResolver.py
4 +++ b/privacyidea/lib/resolvers/LDAPIdResolver.py
7 # The number of seconds a non-responding server is removed from the server pool
9 -# The number of seconds that ldap3 waits if no server is left in the pool, before
10 -# starting the next round
11 -pooling_loop_timeout = get_app_config_value("PI_LDAP_POOLING_LOOP_TIMEOUT", 10)
12 -log.info("Setting system wide POOLING_LOOP_TIMEOUT to {0!s}.".format(pooling_loop_timeout))
13 -ldap3.set_config_parameter("POOLING_LOOP_TIMEOUT", pooling_loop_timeout)
15 # 1 sec == 10^9 nano secs == 10^7 * (100 nano secs)
16 MS_AD_MULTIPLYER = 10 ** 7
17 @@ -314,6 +309,11 @@ def __init__(self):
18 self.serverpool_rounds = SERVERPOOL_ROUNDS
19 self.serverpool_skip = SERVERPOOL_SKIP
20 self.serverpool = None
21 + # The number of seconds that ldap3 waits if no server is left in the pool, before
22 + # starting the next round
23 + pooling_loop_timeout = get_app_config_value("PI_LDAP_POOLING_LOOP_TIMEOUT", 10)
24 + log.info("Setting system wide POOLING_LOOP_TIMEOUT to {0!s}.".format(pooling_loop_timeout))
25 + ldap3.set_config_parameter("POOLING_LOOP_TIMEOUT", pooling_loop_timeout)
27 def checkPass(self, uid, password):