Fórum

How to solve password has expiration errors?

thumbnail
Archi Madhu, modificado 12 Anos atrás.

How to solve password has expiration errors?

Regular Member Postagens: 237 Data de Entrada: 25/03/08 Postagens Recentes
Hi All,

We have migrated LR 5.1.2 to 6 SP1 with db2 database
we are using password encryption algo SHA and hex encoding.

passwords.encryption.algorithm=SHA
passwords.digest.encoding=hex

After running database upgrade, when I try to login with same user name and password, I get message

"Your password has expired. Please contact an administrator to reset your password."

My password is same as I was using in 5.1.2 version.

Note : I have set both properties in LR 6 version as well, still it is giving password expiration message.

Please help!

Thanks,
Archi
thumbnail
Sandeep Nair, modificado 12 Anos atrás.

RE: How to solve password has expiration errors?

Liferay Legend Postagens: 1744 Data de Entrada: 06/11/08 Postagens Recentes
Hi Archi,

Can you see what is the password policy associated with the user. And check if the column expirable = true in that table, if so it will go for checking whether users password should be expired or not based on the logic

if (passwordPolicy.getExpireable()) {
			Date now = new Date();

			if (user.getPasswordModifiedDate() == null) {
				user.setPasswordModifiedDate(now);

				userLocalService.updateUser(user, false);
			}

			long passwordStartTime = user.getPasswordModifiedDate().getTime();
			long elapsedTime = now.getTime() - passwordStartTime;

			if (elapsedTime > (passwordPolicy.getMaxAge() * 1000)) {
				return true;
			}
			else {
				return false;
			}
		}


Regards,
Sandeep
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: How to solve password has expiration errors?

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Have you upgraded you permission algorithm? If not, you'll need to set permissions.user.check.algorithm property in the portal-ext.properties.