How do i reset the forgotten password of glassfish server 4

限于喜欢 提交于 2021-02-08 14:25:29

问题


Recently, i change the password for admin, and unfortunately i don't remember the password of my glassfish server 4. How, can i reset the password.

I've followed the instruction provided in the following link "https://superuser.com/questions/7654/how-to-reset-delete-my-glassfish-password", but it didn't help me.

i went to this path "../glassfish4/glassfish/domains/MyDomain/config/" and change the "admin-keyfile" file, but still it didn't help me.


回答1:


Finally, after few hours of posting the question, i found a solution. On my glassfish installed directory, this in my case /glassfish4/glassfish/domains/mydomain/config. I edit the file named with file name admin-keyfile. i added this line next to the existing line( but i commented the existing line).

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

Then i restart the glassfish server.

Since, i m loading the glassfish server in different machine[Not required if running locally], i additionally need to run this command asadmin enable-secure-admin to make secure enable and asadmin change-admin-password. To set new password. Then i restarted the server again.
Finally it worked.



来源:https://stackoverflow.com/questions/41078683/how-do-i-reset-the-forgotten-password-of-glassfish-server-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!