Your product is good, but I think need more feature is
pam_unix.so. e.g. uid, gid, home directory location, expire
day, shell, lock. This is a main feature of sample unix
system. I hope we can add that features in next version.
Logged In: NO
This is not the job of PAM, but of nsswitch, just nss_mysql
together with pam_mysql .
Logged In: YES
None of those features are functions that pam fulfills.
Those are handed by NSS. Take a look at
If I get time, perhaps we can merge the two projects.
Actually I just made pam_mysql use the nss_mysql
configuration files, removing all options given just leaving
crypt, use_authtok, ingroup (for checking if the user is in
the group) and of course nssconf and nssrootconf.. Last
three added because of nss :) Everything else is in the nss
configuration files.. also adds support for using unix
sockets (aka: /var/vrun/mysql/mysql.sock) .. I havn't
reviewed the code very much, just wrote it and made sure it
worked for me.. gives me hell of a lot of warnings.. which
is why I'm not submitting it..