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... |
Have you looked into using PAM?
|
All times are GMT -5. The time now is 07:49 PM. |