LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP web authentication using system accounts (https://www.linuxquestions.org/questions/programming-9/php-web-authentication-using-system-accounts-440232/)

jineshkj 04-30-2006 05:23 AM

PHP web authentication using system accounts
 
hi,

what i would like to know is how to use php for authenticating system users through web. ie, the user will enter the username/password in a web form and the php in the server should use the server system user account and password to authenticate the user.

First I tried to run
su command to do the trick. but the command says that the standard in must be a tty, but php doesn't support pseudo terminals by default.

Then i pathched the php source with PTY support froMichael Spectorm of zend.com. It seem not to work properly. Does anyone have a better idea or have done this properly? My code doesn't seem to work the same always...

kindly help...





dugas 04-30-2006 10:53 PM

Have you looked into using PAM?


All times are GMT -5. The time now is 07:49 PM.