From d474ef49e8f8adc70e2f2ac0a6d86336b01b8bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 23 Jun 2020 22:23:07 +0200 Subject: [PATCH] =?UTF-8?q?fixed=20bug,dass=20passw=C3=B6rter=20nicht=20mi?= =?UTF-8?q?t=20log=20auftauchen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geruecht/controller/ldapController.py | 4 ++-- geruecht/controller/mainController/mainUserController.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/geruecht/controller/ldapController.py b/geruecht/controller/ldapController.py index e90f374..bc85d8f 100644 --- a/geruecht/controller/ldapController.py +++ b/geruecht/controller/ldapController.py @@ -170,7 +170,7 @@ class LDAPController(metaclass=Singleton): return retVal def modifyUser(self, user, conn, attributes): - debug.info("modify ldap data from user {{ {} }} with attributes {{ {} }}".format(user, attributes)) + debug.info("modify ldap data from user {{ {} }} with attributes (can't show because here can be a password)".format(user)) try: if 'username' in attributes: debug.debug("change username") @@ -191,7 +191,7 @@ class LDAPController(metaclass=Singleton): if 'password' in attributes: salted_password = hashed(HASHED_SALTED_MD5, attributes['password']) mody['userPassword'] = [(MODIFY_REPLACE, [salted_password])] - debug.debug("modyfier are {{ {} }}".format(mody)) + debug.debug("modyfier are (can't show because here can be a password)") conn.modify(user.dn, mody) except Exception as err: debug.warning("exception in modify user data from ldap", exc_info=True) diff --git a/geruecht/controller/mainController/mainUserController.py b/geruecht/controller/mainController/mainUserController.py index 5e6550f..135663d 100644 --- a/geruecht/controller/mainController/mainUserController.py +++ b/geruecht/controller/mainController/mainUserController.py @@ -126,8 +126,8 @@ class Base: return user def modifyUser(self, user, attributes, password): - debug.info("modify user {{ {} }} with attributes {{ {} }}".format( - user, attributes)) + debug.info("modify user {{ {} }} with attributes (can't show because here can be a password)".format( + user)) try: ldap_conn = ldap.bind(user, password)