Module: check_mk
Branch: master
Commit: abe1849a6042c8ff61021ec2047ca27932d0321a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=abe1849a6042c8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 5 16:47:39 2012 +0100
ldap: Returned DNs need double escape of backslashes
---
web/plugins/userdb/ldap.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index fce0856..3a492a0 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -229,7 +229,7 @@ def ldap_get_user_dn(username):
)
if result:
- return result[0][0]
+ return result[0][0].replace('\\', '\\\\')
def ldap_get_users(add_filter = None):
columns = [