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.<br><br><br><br><div class="gmail_quote">On Mon, Nov 8, 2010 at 10:55 AM, WATSON Michael <span dir="ltr">&lt;<a href="mailto:mick.watson@roslin.ed.ac.uk">mick.watson@roslin.ed.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Hi</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I have an old website/DB that I would like to migrate into
Drupal.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">At present, it has a user/password setup that encodes the
passwords in MySQL using the native MySQL password() function.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Clearly this is difficult as Drupal stores passwords as md5
encoded strings, whereas my passwords are encoded by password().</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">If that wouldn’t work, suggestions are welcome!</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks</p>

<p class="MsoNormal">Mick</p>

</div>

</div>


<br>The University of Edinburgh is a charitable body, registered in<br>
Scotland, with registration number SC005336.<br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>-- <br>--<br>Steve Power<br>Principal Consultant<br>Mobile: +44 (0) 7747 027 243<br>
Fax: +44 (0)160 421 2871<br>Skype: steev_initsix<br><a href="http://www.initsix.co.uk">www.initsix.co.uk</a> :: Initsix Heavy Engineering Limited<br>--<br>This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Initsix Heavy Engineering Limited.<br>
If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone.<br>Please contact the sender if you believe you have received this email in error.<br>
<br>Initsix Heavy Engineering Limited<br>Registered in the UK: 5036938<br>Registered Address: 243 Kettering Road, Northampton, NN2 7DU, England. <br>