RSS feed

nss-pam-ldapd branch master updated. 0.9.0-40-g7108b1f

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.9.0-40-g7108b1f

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  7108b1f41474db7c01c402be798d504c43502cfe (commit)
      from  cda6dcdc9722eb551f8698b8711ad2eae2d02ac6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 7108b1f41474db7c01c402be798d504c43502cfe
Author: Arthur de Jong <>
Date:   Sun Aug 18 15:27:34 2013 +0200

    Do not log passwords in pynslcd

diff --git a/pynslcd/ b/pynslcd/
index 3a59cbe..146ed4c 100644
--- a/pynslcd/
+++ b/pynslcd/
@@ -111,9 +111,16 @@ class Request(object):
         # write the final result code
+    def log(self, parameters):
+        parameters = dict(parameters)
+        for param in ('password', 'oldpassword', 'newpassword'):
+            if parameters.get(param):
+                parameters['param'] = '***'
+        logging.debug('%s(%r)', self.__class__.__name__, parameters)
     def __call__(self):
         parameters = self.read_parameters(self.fp) or {}
-        logging.debug('%s(%r)', self.__class__.__name__, parameters)
+        self.log(parameters)


Summary of changes:
 pynslcd/ |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

To unsubscribe send an email to or see