March 18, 2018

Liferay reset the admin password

In this post I show how to reset the Liferay admin password. The official wiki suggests to manually edit the database (User_ table) to reset the administrator password. By default the encryption algorithm to encrypt passwords is SHA-1. Digested passwords are encoded and stored in the database via base64 or hex encoding (default base64). To check this, see the file in portal-impl.jar (or the file for extension environments). The default values are shown below.  

Prior to update the database make sure that you have a backup copy of your data. Follows my application stack.

SO: CentOS 6.4 64_bit
Liferay: 6.1.2-GA2

1. Find administration’s role ID


2. Find users with administration’s role


3. Find admin’s credentials (id 10196)


4. Update the base64 password value


Related posts

Leave a Reply

Your email address will not be published.