How does PAM authentication work?

How does PAM authentication work?

by Adam Morris -
Number of replies: 1

I've decided to try and use PAM authentication module and can't get it to work right. The web server reports that call to pam_auth() isn't a recognized function. When I looked it up on the internet I found that there may be some permissions issues when using pam_auth from within php.

Is there some kind of help available for this module?

Average of ratings: -
In reply to Adam Morris

Re: How does PAM authentication work?

by Steven Gordon -

I have PAM working for user authentication on a Ubuntu Linux server. From my old (and possibly incomplete) notes what I did was:

  1. Install the PAM module for PHP: sudo apt-get install php5-auth-pam
  2. Restart the web server: sudo apache2ctl restart
  3. Create the PHP config file for PAM (/etc/pam.d/php). It includes some comments and the line: @include common-auth
  4. Added the webserver user (www-data) to the shadow group: sudo usermod -G shadow www-data

If you still don't have PAM working, post some details about what you've done and specific errors, and I'll see if I can help.