[debian-edu-commits] debian-edu/upstream/ 61/71: Correct test pam_handler function arguments and make it output more info during testing.

Petter Reinholdtsen pere at moszumanska.debian.org
Mon Jun 9 18:25:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository libpam-mklocaluser.

commit 7e0a649aa824a4c8e13e56143abbeb8085500c23
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Sat May 4 07:04:25 2013 +0000

    Correct test pam_handler function arguments and make it output
    more info during testing.
---
 debian/changelog     | 2 ++
 debian/pam-python.py | 7 ++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 08a9fe5..aee11e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ libpam-mklocaluser (0.8) UNRELEASED; urgency=low
   * Do not try to syslog an exception, as a string is needed in newer
     python versions.
   * Do not call chown -R, implemnt it in python instead.
+  * Correct test pam_handler function arguments and make it output
+    more info during testing.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 04 May 2013 08:25:53 +0200
 
diff --git a/debian/pam-python.py b/debian/pam-python.py
index 5d293f8..e3cb341 100755
--- a/debian/pam-python.py
+++ b/debian/pam-python.py
@@ -187,9 +187,10 @@ if __name__ == '__main__':
     PAM_SYSTEM_ERR = 3
     PAM_TRY_AGAIN = 4
     PAM_TEXT_INFO = 5
-    def Message(tag, str):
-      return
-    def conversation(msg):
+    def Message(self, tag, str):
+      return str
+    def conversation(self, msg):
+      print "PAM conversation: " + msg
       return
   pamh = pam_handler()
   user = sys.argv[1]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/libpam-mklocaluser.git



More information about the debian-edu-commits mailing list