How to keep passwords from eZ 2.x?

Author Message

ondra ilcik

Sunday 31 July 2005 3:26:03 pm

Hi,

I'm upgrading a site from ez2.x to ez3.6.1 and I need to keep old users password. I've imported users, then manually set password_hash_type to 4 in ezuser table and transferred their old passwords, but this does not work (it it not possible to login). Did I forgot to do or set something?

Thanks in advance!

Konrad Mazurkiewicz

Monday 01 August 2005 2:24:17 am

Hi,
check in site.ini(append.php) HashType in UserSettings section.
It should be probably md5_user.

Konrad

ondra ilcik

Monday 01 August 2005 3:46:21 am

Thanks for your reply.

The hash_type is set to md5_user, but this imho influences just new users. I've also set UpdateHash to false.

Afaik eZ2.x used mysql hash and in ez3.x the default hash function is md5.

I've created user dummy for testing purposes. In ezuser table he has set password_hash_type to 4 and password_hash to '710e7e2213ba44ca' (real password is 'dummy', this is its mysql hash). But I'm not able to login with this user.

Does someone knows why?

Thanks

Konrad Mazurkiewicz

Monday 01 August 2005 4:42:51 am

This is strange,
i've imported about 1K users from 2.2 to 3.4 with setting password_hash_type to 4.
In current config HashType is set to md5_user and all is working fine.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.