Module: check_mk
Branch: master
Commit: fe2f02b9d1d80bd9b0f5b64ef8374e74ed415bf4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe2f02b9d1d80b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 2 13:19:30 2015 +0200
LDAP users: Fixed exceptions during login
---
web/plugins/userdb/ldap.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index f708028..97e3249 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -772,12 +772,12 @@ class LDAPUserConnector(UserConnector):
# Try to bind with the user provided credentials. This unbinds the default
# authentication which should be rebound again after trying this.
try:
- ldap_bind(user_dn, password)
+ self.bind(user_dn, password)
result = username.encode('utf-8')
except:
result = False
- ldap_default_bind(self._ldap_obj)
+ self.default_bind(self._ldap_obj)
return result