-   SUSE / openSUSE (
-   -   Need help with checking if opensuse 10.2 password is correct through php (

derekalan18 01-20-2008 11:05 AM

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

carltm 02-03-2008 09:33 AM

This is interesting. What did you do to configure use of the
pam library?

derekalan18 02-03-2008 12:03 PM

I used the pam pecl library from here. I don't remember how I installed it, but after installing it, just read the readme, and it will explain how to use it.

All times are GMT -5. The time now is 09:05 AM.