Module: check_mk
Branch: master
Commit: fe7f9a58d9c4b5058e940f5dd24b60b5135ae12e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe7f9a58d9c4b5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 7 15:58:29 2013 +0100
Fixed login when having "enforce lower user_id" enabled
---
web/plugins/userdb/ldap.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 75834d2..ac79113 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -268,6 +268,9 @@ def ldap_get_user(username, no_escape = False):
dn = result[0][0]
user_id = result[0][1][ldap_user_id_attr()][0]
+ if config.ldap_userspec.get('lower_user_ids', False):
+ user_id = user_id.lower()
+
g_ldap_user_cache[username] = (dn, user_id)
if no_escape: