Originally posted by bundschuh
Is it possible, to authentificate a user against the local linux-password-file (e.g. /etc/shadow) ?
PAM ?
Yes, however, this is an extremely poor idea. Most versions of Solaris and Linux opt for MD5. In order to even view the MD5, you must have root access.
Thus, your process accessing the file must have root access (and your PHP programme.) This is an extremely poor solution.
Instead, create a program to import your shadow file into a PHP table. Run this program only from the server. (SSH.) Copy the MD5's verbaitim. They are usually 32-34 characters.
Authenticate against that.
Michael