I manage to find a thread about it but not much info given on how to go about it step by step.
I would like to build a login page.
I would like to use the shadow file in linux as the credentials.
This is what I would like to do:
Say, eg in the shadow file there is a user with:
username: root
password:qwerty
That means for the login to be successful, the user must type root;qwerty and the credentials entered
will be compared with the ones in the shadow file. If both matches, login is successful, else failed.
How can I do this using shadow? What about logging out? Do I need to to anything here (logging out)?
Is there a better way of doing this; ie building this login mechanism?
(Requirement:The username and password should not be stated in the php codes and password must be encrypted)
Hope someone can help me out and provide an example.
THanks a million.
James