Is it possible to import md5 passwords?

Comments

pulpzebra’s picture

importing from an existing drupal users table does it re-encrypt the already encrypted password?

robert castelo’s picture

Status: Active » Postponed

No, passwords are hashed as part of the account creation process, so if md5 passwords were imported they would not work.

Some code could be added to change the password to the old MD5 password once an account has been created.

That's an option I'd like to include, but won't have time to code for a few weeks.

ineffable’s picture

I am having this same problem, with over 400 users to add...

ineffable’s picture

For anyone who's wondering how to get around this problem, what I did was manually edit the SQL tables, replacing the newly generated passwords with the old passwords from my previous site's CSV.

tysonlee19’s picture

ineffable, can you explain more about how you did this? I need to import about 600 users, and I have their hashed passwords in a CSV file. I'd rather not make everyone reset their password, if possible.

Thanks for any help...

robert castelo’s picture

Version: 4.7.x-1.0 » 5.x-2.0-beta1
dotleb’s picture

I have been into same issue, and imported users using node import.
after that i created a new table, inserted the old userstable in it and updated the two tables passwords using the old one to sync onto the new one, this way recovering the old hashes.
I posted this on my blog : http://ghaoui.com/blog/2009/01/synchronise-database-field-columns-in-mysql/

pomliane’s picture

Status: Postponed » Closed (won't fix)

This version of User Import is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.