Need help with checking if opensuse 10.2 password is correct through php
Hello, I am trying to set up a php script that will check to see if the username and password the user entered is correct, but I dont know how to check the password. can someone please help me out? Thank you.
Edit: I should probably explain this better, I am running an ssh server, and other people that I know have accounts. I also have a website, and would like these people to be able to link their ssh accounts to accounts on my site, so they can make changes to their account easily. In order to do this I want to make a php script, where they can enter their username and password, and if they are correct, their ssh account will be linked. The only problem im having is that I do not know how to check the password, I know it uses blowfish encryption, but I don't know how to encrypt the password, so that if it is correct, it will match the password for that user in /etc/shadow. Please help me figure it out. Thank you.
Edit: Never mind, I figured it out. I used the pam library to check the password
Last edited by derekalan18; 01-21-2008 at 01:35 PM.