LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-16-2004, 07:39 PM   #1
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Moving encrypted passwords to a new host


I've got a web application, written in PHP and mySQL, that we're moving from one Linux host (an old version of RedHat) to another (SuSE 9.1).

The web app's user names and MD5-encrypted passwords are stored in mySQL.

The problem is that, after doing a mySQL dump of the entire database from the old host to the new one, none of the old web app logons seem to work anymore.

Is there any way I can make the old, MD5-encrypted passwords stored on the old host (EXAMPLE: "990897c4fbbe8e453078d1f758c4bdc5") work correctly on the new mySQL database/PHP md5() function on the new host?

Or do I have to force everybody to change all of their passwords?

Thank you very much in advance!
 
Old 09-17-2004, 02:40 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Found the problem: register_globals

I made the incorrect assumption that the md5-encrypted passwords stored in the database were, for whatever reason, incompatible between the old version of Redhat Linux/PHP and the new version of SuSE 9.1/PHP 4.3.4. That is, of course, not true.

Actually, the problem is that the "intranet" PHP application I'm migrating from the old server to the new server makes use of session variables ... in a way that's incompatible with the default settings in PHP 4.3.4.

The solution was simply to modify /etc/php.ini:

register_globals = "On";

If you're curious, you can read more about the issue here:
http://us4.php.net/register_globals
 
  


Reply


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
Qmail - Encrypted Passwords chrisfirestar Linux - Networking 9 06-25-2013 03:11 AM
.htaccess not accepting encrypted passwords. Braytac Linux - Distributions 1 04-28-2005 01:55 AM
Encrypted Passwords, how could I tell? wardialer Linux - Security 13 10-12-2004 03:14 PM
Matching encrypted user passwords linuxprogrammer Linux - Newbie 2 10-12-2004 12:53 AM
creating encrypted passwords kidwired Linux - Security 3 01-12-2003 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration