Module: check_mk
Branch: master
Commit: ab1312db318fb37fae93a4185f06e6011e5e057b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab1312db318fb3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 7 16:39:03 2013 +0100
Added bind result logging to debug log
---
web/plugins/userdb/ldap.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index ac79113..187c176 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -167,7 +167,9 @@ def ldap_bind(username, password, catch = True):
ldap_log('LDAP_BIND %s' % username)
try:
ldap_connection.simple_bind_s(username, password)
+ ldap_log(' SUCCESS')
except ldap.LDAPError, e:
+ ldap_log(' FAILED (%s)' % e)
if catch:
raise MKLDAPException(_('Unable to authenticate with LDAP (%s)' %
e))
else: