Branch 'pykolab-0.6' - pykolab/auth

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Fri Jan 10 14:50:19 CET 2014


 pykolab/auth/ldap/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 36fff715e218311dc08d3d464317f376f8c196e1
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Fri Jan 10 14:49:40 2014 +0100

    Circumvent decoding errors in log messages from causing authentication to fail

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!!




More information about the commits mailing list