Не в курсе, но возможно, это
pam-mysql - MySQL authentication for PAM
Description: MySQL authentication for PAM
This is a module that allows people to login to PAM-aware applications by
authenticating to a MySQL database. Now configurable in terms of which host the
database resides upon and which table and username and password column to
interrogate.