留言板

Adminstrator password

Neusa Bach,修改在14 年前。

Adminstrator password

New Member 帖子: 4 加入日期: 09-9-25 最近的帖子
Hi!
I installed Liferay on a server and haven't used it for a while and now it does not accept the password I had created for the Administrator.
Is there a way to change the password saved or to create a new account for the Administrator?
thumbnail
Zsolt Balogh,修改在14 年前。

RE: Adminstrator password

Expert 帖子: 463 加入日期: 09-3-23 最近的帖子
Hi,

wait a sec (or an hour emoticon ) and I'll have a solution for you.

Do you have access to your liferay instance in filesystem? (=Can you deploy liferay plugins?)
thumbnail
Amos Fong,修改在14 年前。

RE: Adminstrator password

Liferay Legend 帖子: 2047 加入日期: 08-10-7 最近的帖子
if you have access to the database, I think this should work.

You could update the password for the user and set passwordencrypted to false
thumbnail
Zsolt Balogh,修改在14 年前。

RE: Adminstrator password

Expert 帖子: 463 加入日期: 09-3-23 最近的帖子
I had some time, so I wrote a hook plugin for this.

To change the password for your user, you need to do this:
  • Download the attached war file
  • Open it (it's a zip file)
  • Edit the password.changer.properties file in the WEB-INF/classes directory
  • Deploy the war file into the deploy directory of liferay (with tomcat it's deploy)
  • wait 10-20 seconds and try to log in with the new password
  • UNDEPLOY THE PLUGIN, or it will change the password next time you restart your liferay


Or you can just edit the database (User_ table) as Amos said...

(This plugin is written by me, not really tested, so you don't want to use this on a production site without backup).

The source code is in the war too.
Neusa Bach,修改在14 年前。

RE: Adminstrator password

New Member 帖子: 4 加入日期: 09-9-25 最近的帖子
Thanks!!!
I'll try both!
thumbnail
Jonas Yuan,修改在14 年前。

RE: Adminstrator password

Liferay Master 帖子: 993 加入日期: 07-4-27 最近的帖子
Hi Zsolt,

Very good plugin, it would be helpful ....

Thank you, Zsolt,

Jonas Yuan
Juergen Troschke,修改在9 年前。

RE: Adminstrator password

New Member 帖子: 8 加入日期: 13-5-15 最近的帖子
Hello! I try liferay-password-changer-5.2.3.1.war in Liferay 6.2.0ga2 and get:
Error registering hook for liferay-password-changer-5.2.3.1liferay-password-changer-5.2.3.1.
Is there a new version?
thumbnail
Yogesh Sharma,修改在9 年前。

RE: Adminstrator password

Junior Member 帖子: 32 加入日期: 12-3-7 最近的帖子
Quickest way I follow is using sql query on database.

This query might help you. This will reset password to 'test' for specific email address.

Execute it while your server is not running (of-course edit query with desired password and correct email address).

UPDATE user_ SET password_ = 'test', passwordEncrypted = FALSE WHERE emailAddress = 'test@liferay.com';
thumbnail
Olaf Kock,修改在9 年前。

RE: Adminstrator password

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
You might be able to simply recompile: The posted WAR file contains the source code and the plugin is really simple. Create a new hook, stick the source and config-files in (maybe update the xml document types to current versions) and compile