Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 01-20-2008, 11:05 AM   #1
LQ Newbie
Registered: Sep 2005
Location: Michigan
Distribution: SuSE KDE
Posts: 26

Rep: Reputation: 15
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 02:35 PM.
Old 02-03-2008, 09:33 AM   #2
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
This is interesting. What did you do to configure use of the
pam library?
Old 02-03-2008, 12:03 PM   #3
LQ Newbie
Registered: Sep 2005
Location: Michigan
Distribution: SuSE KDE
Posts: 26

Original Poster
Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is OpenSUSE worth checking out? shadowfx78 SUSE / openSUSE 12 08-16-2007 04:45 PM
kdesu gives incorrect password error with correct password. dasy2k1 SUSE / openSUSE 1 04-16-2007 11:34 AM
Can't login; password is correct ticky87 Linux - General 2 08-15-2004 08:32 PM
Can't login using correct password on RedHat 9 philipacamaniac Linux - Software 8 11-07-2003 11:41 AM
Cannot log in with CORRECT password Citizen Bleys Linux - Security 2 07-24-2003 11:15 PM

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration