How does PAM authentication work?

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of Adam Morris
How does PAM authentication work?

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: -
Picture of Steven Gordon
Re: How does PAM authentication work?

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.


Average of ratings: -