Module: check_mk
Branch: master
Commit: 38cfca5adffe39d0abf121dc692128a60471b384
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38cfca5adffe39…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 21 13:57:44 2013 +0100
Fixed wrong named variable
---
web/plugins/userdb/ldap.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/plugins/userdb/ldap.py b/web/plugins/userdb/ldap.py
index 23f899d..7e3beb6 100644
--- a/web/plugins/userdb/ldap.py
+++ b/web/plugins/userdb/ldap.py
@@ -220,12 +220,12 @@ def ldap_default_bind(conn):
'Please fix this in the '
'<a
href="wato.py?mode=ldap_config">LDAP connection settings</a>.'))
-def ldap_bind(username, password, catch = True, conn = None):
+def ldap_bind(user_dn, password, catch = True, conn = None):
if conn is None:
conn = ldap_connection
- ldap_log('LDAP_BIND %s' % username)
+ ldap_log('LDAP_BIND %s' % user_dn)
try:
- conn.simple_bind_s(username, password)
+ conn.simple_bind_s(user_dn, password)
ldap_log(' SUCCESS')
except ldap.LDAPError, e:
ldap_log(' FAILED (%s)' % e)