掲示板

Database upgrade from 6.1 to 7/ DXP

6年前 に Ashwini Sidhanti によって更新されました。

Database upgrade from 6.1 to 7/ DXP

New Member 投稿: 20 参加年月日: 16/12/15 最新の投稿
Hello Everyone,

I am doing a database upgrade from Liferay 6.1 to Liferay 7(Locally)
Steps I followed are:
1.) created a new database with the old dump.
2.) Created a .cfg file to disable Indexing.
3.) Used the DBupgardetool. (was successful)
But when I tried to log in with the existing user it gives me "Authentication Failed " Error.

Please let me know if I missed any step here. It will be very helpful.
Thanks in Advance.

Regards,
Ashwini Sidhanti
thumbnail
6年前 に Olaf Kock によって更新されました。

RE: Database upgrade from 6.1 to 7/ DXP

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Just a quick idea, without much research: Did you apply the legacy properties? The default password encryption of 6.1 was different to the current one, and it may be that Liferay just doesn't have a clue how the passwords in your database are hashed.
(You'll find legacy properties in WEB-INF/classes, they contain changes to default values that were made in each release. Inspect them and apply as needed)
thumbnail
6年前 に Alberto Chaparro によって更新されました。

RE: Database upgrade from 6.1 to 7/ DXP

Liferay Master 投稿: 549 参加年月日: 11/04/25 最新の投稿
Hi Ashwini,

In 6.2 we changed the algorithm to encrypt passwords, every upgrade from 6.1 should include the following property with the algorithm you used in 6.1:
passwords.encryption.algorithm.legacy=SHA


You don't need to repeat the upgrade, it's enough if you include that property before starting your Liferay 7/DXP server.

More information here:
https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/upgrading-liferay#review-the-liferay-6-2-properties-defaults

Best regards.
6年前 に Ashwini Sidhanti によって更新されました。

RE: Database upgrade from 6.1 to 7/ DXP

New Member 投稿: 20 参加年月日: 16/12/15 最新の投稿
Thanks for the quick reply Alberto and Olaf. It was very helpful.
But restarting the server didn't help me. I had to repeat the whole process again.
I have a small question.
When user reset the password, the passwords would be hashed with the new algorithm or with the old algorithm?
thumbnail
6年前 に Alberto Chaparro によって更新されました。

RE: Database upgrade from 6.1 to 7/ DXP

Liferay Master 投稿: 549 参加年月日: 11/04/25 最新の投稿
Hi Ashwini,

I'm glad that it worked.

As far as I know, once a user enter a new password, it will be encrypted with the new algorithm.

Best regards.
6年前 に Ashwini Sidhanti によって更新されました。

RE: Database upgrade from 6.1 to 7/ DXP

New Member 投稿: 20 参加年月日: 16/12/15 最新の投稿
Thanks Alberto , That is helpful
Regards,
Ashwini Sidhanti