Module: check_mk
Branch: master
Commit: d9505a504ec082a6c4dba542c03fb089bc18855d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d9505a504ec082…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Mar 6 15:26:14 2014 +0100
FIX ldap sync: syncing if rules against ldap is not longer case sensitiv
---
.werks/139 | 9 +++++++++
ChangeLog | 1 +
web/plugins/userdb/ldap.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/139 b/.werks/139
new file mode 100644
index 0000000..067499e
--- /dev/null
+++ b/.werks/139
@@ -0,0 +1,9 @@
+Title: ldap sync: syncing if rules against ldap is not longer case sensitiv
+Level: 1
+Component: wato
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1394115867
+
+
diff --git a/ChangeLog b/ChangeLog
index dfb73c0..9dd39a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -306,6 +306,7 @@
* 0559 FIX: WATO snapshots: improved validation of (uploaded) snapshots...
* 0709 FIX: Fix NoneType has not attribute userdb_automatic_sync bug in D-WATO
* 0728 FIX: mem.win: fixed bug in WATO configuration rule...
+ * 0139 FIX: ldap sync: syncing if rules against ldap is not longer case sensitiv
Notifications:
* 0362 sms: now searching PATH for sendsms and smssend commands...
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 31e1ced..3351bb2 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -875,7 +875,7 @@ ldap_attribute_plugins['groups_to_contactgroups'] = {
def ldap_convert_groups_to_roles(plugin, params, user_id, ldap_user, user):
# Load the needed LDAP groups, which match the DNs mentioned in the role sync plugin
config
- ldap_groups = dict(ldap_group_members([ dn for role_id, dn in params.items() if
isinstance(dn, str) ],
+ ldap_groups = dict(ldap_group_members([ dn.lower() for role_id, dn in params.items()
if isinstance(dn, str) ],
filt_attr = 'distinguishedname', nested =
params.get('nested', False)))
roles = set([])