I lost the Glassfish administrator password

2

I lost the Glassfish admin account password, how should I proceed? To update the password I need the old password, which I lost. Can you directly manipulate the files to reset?

    
asked by anonymous 20.03.2018 / 20:47

1 answer

2

The only way I've found today is to change the configuration file named admin-keyfile to:

$GLASSFISH_HOME$\glassfish\domains\domain1\config\admin-keyfile

Remove the content (or just comment the content), replacing it with the below:

admin;{SSHA}WQVj8i9CLECCiv+w6ZxGgMrcfPqHPoXZW+2Jdw==;asadmin

With this, the password will be reset to default, which is not having a password.

    
20.03.2018 / 20:47