summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-10 14:49:40 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-10 14:49:40 +0100
commit38fad0deb17238733021846374d66ea2f0a1c764 (patch)
treebc50105ba9532fb40ce3d19eda813addb04e9d4c
parent345c2d5e0950f433ffc83c590f0bdeb672b1a617 (diff)
downloadpykolab-38fad0deb17238733021846374d66ea2f0a1c764.tar.gz
Circumvent decoding errors in log messages from causing authentication to fail
-rw-r--r--pykolab/auth/ldap/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index f597dfd..54d667c 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -214,7 +214,7 @@ class LDAP(pykolab.base.Base):
try:
log.debug(_("Binding with user_dn %s and password %s")
- % (entry_dn, login[1]))
+ % (entry_dn, '*' * len(login[1])))
# Needs to be synchronous or succeeds and continues setting retval
# to True!!
@@ -238,7 +238,7 @@ class LDAP(pykolab.base.Base):
else:
try:
log.debug(_("Binding with user_dn %s and password %s")
- % (entry_dn, login[1]))
+ % (entry_dn, '*' * len(login[1])))
# Needs to be synchronous or succeeds and continues setting retval
# to True!!