Passwords incorrectly hashed when upgrading from Moodle 2.0.5+ to 2.2+

Passwords incorrectly hashed when upgrading from Moodle 2.0.5+ to 2.2+

av Daryle Niedermayer -
Antall svar: 2

I just upgraded my server yesterday from Moodle 2.0.5+ to Moodle 2.2+ (Build: 20111209).

The upgrade performed without error or warning and seemed to go smoothly. I'm working on testing it for the next couple of days before the new semester begins in January.

One problem I did encounter was that most (possibly all) user passwords did not correctly migrate over (including mine as the administrator). There seems to be some difference in the hashing algorithm between the two versions. Anybody know this difference?

The work around was to publish a news announcement on the site asking people to click the "lost password" button and have a new password emailed to them but I expect that some students will have orphaned mailboxes and need manual password sets in January.

Gjennomsnittlig vurdering: -
Som svar til Daryle Niedermayer

Re: Passwords incorrectly hashed when upgrading from Moodle 2.0.5+ to 2.2+

av Matteo Scaramuccia -

Hi Daryle,
it could be related with the way you have cloned the system from your production environment to your test one: keep care of using the same salt in both system i.e. copying the current one into the new config.php or to add the old one as written in the docs.

HTH,
Matteo

Som svar til Matteo Scaramuccia

Re: Passwords incorrectly hashed when upgrading from Moodle 2.0.5+ to 2.2+

av Daryle Niedermayer -

Thanks Matteo, that was it.

Added that step to my documentation: replace new config.php file with archived version to maintain the salt.