Find the answer to your Linux question:
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.
  1. #1
    Just 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 ?

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Quote Originally Posted by jrote1 View Post
    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 ?
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •