If pam_python returns something
other than PAM_SUCCESS to PAM
a message will be written to the syslog
LOG_AUTHPRIV
facility.
The only exception to this is when pam_python
is passing on the return value
from a Python pam_sm_...() entry point -
nothing is logged in that case.
So, if your Python PAM Module is failing in mysterious ways check syslog.
The diagnostic or traceback Python would normally print to stderr
will be in there.
The PAM result codes returned directly by pam_python are: