pam_exec PAM module
What it does?
pam_exec lets you authenticate a user with any executable program.
Access is granted or denied depending on the exit code of the executable's
process. The executable can be an ELF executable, a script or whatever
else you want. Samples include scripts for autentication against USB key
and authentication based on whether the user is already logged in on a
physical terminal (tty).
The software is GNU GPL licensed.
Download