Hi
I have an old website/DB that I would like to migrate into Drupal.
At present, it has a user/password setup that encodes the passwords in MySQL using the native MySQL password() function.
Ideally, I'd like to take those users and replace them with Drupal users, in a seamless way and without having to re-set user passwords, such that users can log into the new Drupal website without having to change or re-set their passwords.
Clearly this is difficult as Drupal stores passwords as md5 encoded strings, whereas my passwords are encoded by password().
I notice that the user.module file includes several calls to md5. If I changed all of these to a function which mimics the MySQL password() function, would that enable me to migrate my users into Drupal, allowing them to log into Drupal with their existing passwords?
If that wouldn't work, suggestions are welcome!
Thanks Mick
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
why not export your user data from your old app, import to drupal (decrypt the mysql password, hash with md5) then you dont have to mess about hacking core.
On Mon, Nov 8, 2010 at 10:55 AM, WATSON Michael <mick.watson@roslin.ed.ac.uk
wrote:
Hi
I have an old website/DB that I would like to migrate into Drupal.
At present, it has a user/password setup that encodes the passwords in MySQL using the native MySQL password() function.
Ideally, I’d like to take those users and replace them with Drupal users, in a seamless way and without having to re-set user passwords, such that users can log into the new Drupal website without having to change or re-set their passwords.
Clearly this is difficult as Drupal stores passwords as md5 encoded strings, whereas my passwords are encoded by password().
I notice that the user.module file includes several calls to md5. If I changed all of these to a function which mimics the MySQL password() function, would that enable me to migrate my users into Drupal, allowing them to log into Drupal with their existing passwords?
If that wouldn’t work, suggestions are welcome!
Thanks
Mick
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
-- [ Drupal support list | http://lists.drupal.org/ ]