[debian-edu-commits] r79919 - trunk/src/libpam-mklocaluser/debian
    pere at alioth.debian.org 
    pere at alioth.debian.org
       
    Sat May  4 07:04:25 UTC 2013
    
    
  
Author: pere
Date: 2013-05-04 07:04:25 +0000 (Sat, 04 May 2013)
New Revision: 79919
Modified:
   trunk/src/libpam-mklocaluser/debian/changelog
   trunk/src/libpam-mklocaluser/debian/pam-python.py
Log:
Correct test pam_handler function arguments and make it output
more info during testing.
Modified: trunk/src/libpam-mklocaluser/debian/changelog
===================================================================
--- trunk/src/libpam-mklocaluser/debian/changelog	2013-05-04 06:58:09 UTC (rev 79918)
+++ trunk/src/libpam-mklocaluser/debian/changelog	2013-05-04 07:04:25 UTC (rev 79919)
@@ -6,6 +6,8 @@
   * 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
 
Modified: trunk/src/libpam-mklocaluser/debian/pam-python.py
===================================================================
--- trunk/src/libpam-mklocaluser/debian/pam-python.py	2013-05-04 06:58:09 UTC (rev 79918)
+++ trunk/src/libpam-mklocaluser/debian/pam-python.py	2013-05-04 07:04:25 UTC (rev 79919)
@@ -187,10 +187,11 @@
     PAM_SYSTEM_ERR = 3
     PAM_TRY_AGAIN = 4
     PAM_TEXT_INFO = 5
-    def Message(tag, str):
+    def Message(self, tag, str):
+      return str
+    def conversation(self, msg):
+      print "PAM conversation: " + msg
       return
-    def conversation(msg):
-      return
   pamh = pam_handler()
   user = sys.argv[1]
   check_and_create_localuser(pamh, user)
    
    
More information about the debian-edu-commits
mailing list