Foros de discusión

Adminstrator password

Neusa Bach, modificado hace 14 años.

Adminstrator password

New Member Mensajes: 4 Fecha de incorporación: 25/09/09 Mensajes recientes
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, modificado hace 14 años.

RE: Adminstrator password

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
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, modificado hace 14 años.

RE: Adminstrator password

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
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, modificado hace 14 años.

RE: Adminstrator password

Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
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, modificado hace 14 años.

RE: Adminstrator password

New Member Mensajes: 4 Fecha de incorporación: 25/09/09 Mensajes recientes
Thanks!!!
I'll try both!
thumbnail
Jonas Yuan, modificado hace 14 años.

RE: Adminstrator password

Liferay Master Mensajes: 993 Fecha de incorporación: 27/04/07 Mensajes recientes
Hi Zsolt,

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

Thank you, Zsolt,

Jonas Yuan
Juergen Troschke, modificado hace 9 años.

RE: Adminstrator password

New Member Mensajes: 8 Fecha de incorporación: 15/05/13 Mensajes recientes
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, modificado hace 9 años.

RE: Adminstrator password

Junior Member Mensajes: 32 Fecha de incorporación: 7/03/12 Mensajes recientes
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, modificado hace 9 años.

RE: Adminstrator password

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
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