Public bug reported: The example file:
/usr/share/doc/python-pam/examples/pamtest.py Line 19 contains: elif type == PAM.PAM_PROMPT_ERROR_MSG or type == PAM.PAM_PROMPT_TEXT_INFO: Line 19 should contain: elif type == PAM.PAM_ERROR_MSG or type == PAM.PAM_TEXT_INFO: If the pam module gives text info or an error message, this results in the example giving the following as output: Go away! (('Authentication service cannot retrieve authentication info', 9)) ...when in fact it should (under at least some circumstances) give the following as output: Good to go! 1) Description: Ubuntu 11.04 Release: 11.04 2) python-pam: Installed: 0.4.2-12.2ubuntu2 Candidate: 0.4.2-12.2ubuntu2 Version table: *** 0.4.2-12.2ubuntu2 0 500 http://us.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages 100 /var/lib/dpkg/status 3) See above. 4) See above. ** Affects: python-pam (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912128 Title: Example code contains incorrect constant names which causes incorrect behavior on error messages or text information. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-pam/+bug/912128/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs