pam-exec is a pam module that allows you to call an arbitrary program from within the pam stack. The called program gets information such as user, ruser, tty and service passed via the commandline and the password passed via the environment. This can e.g. be used to disable the user account via an external program or to do some checks on the typed in password. You can fetch the source code using git from:
Source Code
The source code is available via:
git clone https://git.sigxcpu.org/cgit/pam-exec
and can be browsed here.
Authors
pam-exec was written by Guido Günther <agx@sigxcpu.org>.