This project allows pam to authenticate users against anything. We have a sql database of users with hashed passwords that we want to use for an sftp server. pam-anyauth combined with pam configurations allow the sftp server to permit/deny based on current credentials in the database. There is room to add more types of authentication and improve the overall process.
Moved to github, https://github.com/jamiesonbecker/pam_redirector
Moved to github, https://github.com/jamiesonbecker/pam_redirector
A pluggable authentication module (PAM) that allows redirection of login credentials to a local UNIX stream socketserver and includes an example 33-line simple socketserver (written in Python) just to show how easy it is to do this redirection.