I am trying to create a web system that checks existing linux user accounts for authentication. I have found the pam_auth module which I have installed and phpino() reports is there.
I then created a php file in pam.d with the following:
# /etc/pam.d/php
#
note: both an auth and account entry are required
auth sufficient /lib/security/pam_unix.so shadow nodelay
account sufficient /lib/security/pam_unix.so
I am getting an error of "Permission Denied" when I try to authenticate. This is with the correct username/pass. I tried to copy login to php and edit it as the instructions suggest, but that just gets me the error "Error in service module".
Any ideas as to what I need to do to get this authentication working? Anyone used pam_auth successfully? Are there any other alternatives?
Thanks!