Module: check_mk
Branch: master
Commit: cc88eeeb0fc26708327ea6338c06d80669625c3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc88eeeb0fc267…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 29 08:49:53 2017 +0200
LDAP query: Do not retry queries when implicit_connect is disabled
Change-Id: I3ec7aa440793cf7b5f3ba32f192c9c70c11b3822
---
web/plugins/userdb/ldap.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 35ff1ad..8973be6 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -566,7 +566,8 @@ class LDAPUserConnector(UserConnector):
# In some environments, the connection to the LDAP server does not seem to
# be as stable as it is needed. So we try to repeat the query for three times.
- tries_left = 2
+ # -> Don't retry when implicit connect is disabled
+ tries_left = 2 if implicit_connect else 0
success = False
last_exc = None
while not success: