Results 1 to 2 of 2
I am trying to find a way to perform PAM authentication through a PHP script. So basicly PAM calls PHP script to see if the user is correct and returns ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-05-2012 #1Just Joined!
- Join Date
- Oct 2012
- Posts
- 1
PAM authentication using PHP script
I am trying to find a way to perform PAM authentication through a PHP script. So basicly PAM calls PHP script to see if the user is correct and returns a result. How would I go about this ?
- 10-08-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
Hi,
I've never done this myself w/PHP (did it w/Perl CGI, but that's a little different in execution - though similar in system design). anyway, look into the posix_getpwnam PHP function. The following PHP article explains it, and has some user-contributed examples, as well:
PHP: posix_getpwnam - Manual


Reply With Quote

