Module: check_mk
Branch: master
Commit: c07b66e15e1d4da6b44ad2c398eef815f9c50f66
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c07b66e15e1d4d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 30 13:21:20 2017 +0200
Fixed recently introduced exception when creating LDAP connections
Change-Id: I24cf980bda28db696bf77fb70811f8852b790dbf
---
web/plugins/userdb/ldap.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 701d33f..6f82493 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -139,6 +139,9 @@ class LDAPUserConnector(UserConnector):
@classmethod
def transform_config(cls, config):
+ if not config:
+ return config
+
# For a short time in git master the directory_type could be:
# ('ad', {'discover_nearest_dc': True/False})
if type(config["directory_type"]) == tuple and
config["directory_type"][0] == "ad" \