Tell PAM to use a Python PAM module in the usual way: add a rule to your PAM configuration. The PAM administrators manual gives the syntax of a rule as:
service type control module-path module-arguments
The first three parameters are the same for all PAM modules,
and so aren't any different for pam_python.
The module-path is the path to pam_python.so.
Like all paths PAM modules it is relative to the default PAM module directory
so is usually just the string pam_python.so
.
The first module-argument is the path to the Python PAM module.
If it doesn't start with a / it is relative to the /lib/security
.
All module-arguments, including the path name to the Python PAM module
are passed to it.