gnosek/python-pam — pull request #1 by mikjo (2012-12-19 15:33:07+00:00)
Title: PAM_PROMPT_ECHO_OFF assumes getpass is imported

The prompt-for-password only works if you run as main, because that's the only place that you imported getpass. Since it is invoked in the PAM_PROMPT_ECHO_OFF case, it should be imported module-wide.

Thanks!