Need help validating linux system users through php web site
Posted: Thu Jan 16, 2003 9:14 am
Here is the dilema:
I am the IT Chair for a student chapter of IEEE. I have one linux machine that is used as the domain, web, and database server. Currently, I have to give my members (users) two acounts. One account allows my users to log onto the IEEE workstations which is validated by the linux domain server, the other account allows the users to login and access our web based services which is validated by using mysql.
The problem: when a user changes his/her password on the domain (workstations), the online account does not change and when the online password is changed, the domain account is not changed. Basically, I want to sync these passwords so that if one is changed, then the other is changed as well. Therefore, to the user the separation of accounts will be transparent.
I figured the best way to achieve this integration of accounts is to just forget the database validation completely and use the linux system accounts as the web site validation. I have seen web sites where one can sign up for an account online and then is able to use linux system services like ftp and ssh.
Now for my question. Is this possible with PHP? I have seen where one can run system commands through a php web interface.
Obviously I do not expect anyone to say, "Here is a script, it will do it all for you AND pay for dinner!" I would like someone to point me in the right direction. Some good documentation about how to go about doing something like this would be great.
If you read all of the above, thank you for your time. Any advice?
-redptam-
I am the IT Chair for a student chapter of IEEE. I have one linux machine that is used as the domain, web, and database server. Currently, I have to give my members (users) two acounts. One account allows my users to log onto the IEEE workstations which is validated by the linux domain server, the other account allows the users to login and access our web based services which is validated by using mysql.
The problem: when a user changes his/her password on the domain (workstations), the online account does not change and when the online password is changed, the domain account is not changed. Basically, I want to sync these passwords so that if one is changed, then the other is changed as well. Therefore, to the user the separation of accounts will be transparent.
I figured the best way to achieve this integration of accounts is to just forget the database validation completely and use the linux system accounts as the web site validation. I have seen web sites where one can sign up for an account online and then is able to use linux system services like ftp and ssh.
Now for my question. Is this possible with PHP? I have seen where one can run system commands through a php web interface.
Obviously I do not expect anyone to say, "Here is a script, it will do it all for you AND pay for dinner!" I would like someone to point me in the right direction. Some good documentation about how to go about doing something like this would be great.
If you read all of the above, thank you for your time. Any advice?
-redptam-