LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-20-2008, 10:05 AM   #1
derekalan18
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 01:35 PM.
 
Old 02-03-2008, 08:33 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
This is interesting. What did you do to configure use of the
pam library?
 
Old 02-03-2008, 11:03 AM   #3
derekalan18
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.
 
  


Reply



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 03:45 PM
kdesu gives incorrect password error with correct password. dasy2k1 SUSE / openSUSE 1 04-16-2007 10:34 AM
Can't login; password is correct ticky87 Linux - General 2 08-15-2004 07:32 PM
Can't login using correct password on RedHat 9 philipacamaniac Linux - Software 8 11-07-2003 10:41 AM
Cannot log in with CORRECT password Citizen Bleys Linux - Security 2 07-24-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:43 AM.

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