Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am trying to import the users from the existing drupal site to another drupal instance. I have exported all the users into a csv file using mysql command. I got all the users with their Encrypted passwords. I was trying to unencrypt the encrypted passwords but it was not possible for me.
Is it possible to map the password of the user with Encrypted password or let me know whether we can unecrypt md5 password?
Comments
Comment #1
dgastudio CreditAttribution: dgastudio commentedalso need it.
Comment #2
franzIf you could easily unencrypt md5, it would not be secure, right?
No feature request is ever "critical". This could be achieved using a custom mapper. See the feeds.api.php file to learn how to do it.
Comment #3
zarkinfrood CreditAttribution: zarkinfrood commenteddoes the importer in feeds encrypt the password automatically?
There is a solution for converting an md5 to D7 SHA hash, but would require a separate process. Has anyone found a solution for this?
Would hate to have to do this by hand given the other fields my users need.
Comment #4
Jalandhar CreditAttribution: Jalandhar commentedWe have to create a page named something like rehash.php (in your root, same place as update.php). Then, log in as administrator first, browse to this page second. Please find the below code
(Note : Skipped the hashing for the admin user having uid=1 in the below code ).
Comment #5
MegaChriz CreditAttribution: MegaChriz commentedThis looks like a duplicate of #1611554: Support for encrypted passwords. If I'm mistaken, you may reopen this issue.