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)