Module: check_mk
Branch: master
Commit: a90090ea4851cd003a464c3e2ae2d43c86620bc8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a90090ea4851cd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jun 20 16:11:45 2017 +0200
4889 FIX LDAP connections: Fixed exception when using "nested groups" with
groups to roles plugin
Change-Id: Id706ecb10cf2e5cc67a3a49e8c9bafb249cded71
---
.werks/4889 | 11 +++++++++++
web/htdocs/wato.py | 3 +++
2 files changed, 14 insertions(+)
diff --git a/.werks/4889 b/.werks/4889
new file mode 100644
index 0000000..fd01d77
--- /dev/null
+++ b/.werks/4889
@@ -0,0 +1,11 @@
+Title: LDAP connections: Fixed exception when using "nested groups" with groups
to roles plugin
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1497967829
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1a28d0b..a29e0be 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6473,6 +6473,9 @@ def vs_ldap_connection(new, connection_id):
def validate_ldap_connection(value, varprefix):
for role_id, group_specs in
value["active_plugins"].get("groups_to_roles", {}).items():
+ if role_id == "nested":
+ continue # This is the option to enabled/disable nested group handling, not a
role to DN entry
+
for index, group_spec in enumerate(group_specs):
dn, connection_id = group_spec