Monday, April 23, 2007

Recovering WebLogic System Password

While searching for instructions to recover WebLogic password, I did come across this nice and a bit old article WebLogic Server Administration Best Practices at dev2dev.bea.com

I am copying instructions to recover WebLogic system password from above article. I have vaildated this procedure for WebLogic 8.1

Recovering Administrator Password
When using the default authenticator, if you have not modified the global admin role (which, by default is granted to the administrators group), you can recover the administrator password in a WebLogic domain.

To recover the administrator password in a WebLogic domain:
  • At the command line, change directory to the domain and run the setEnv script to set the PATH and CLASSPATH.
  • Backup the existing DefaultAuthenticatorInit.ldift file in a different directory.
  • java -cp D:\bea\weblogic700\server\lib\weblogic.jar weblogic.security.utils.AdminAccount adminuser weblogic . (Be careful: there is a dot at the end of the command).
  • rm myserver/ldap/DefaultAuthenticatormyrealmInit.initialized
  • rm boot.properties (if any)
  • Reboot the admin server with "adminuser" as administrator userid
  • After the server has successfully booted, delete the new DefaultAuthenticatorInit.ldift file and replace it with the backed up file.

If you don't perform these steps in the correct sequence or if you create a DefaultAuthenticatorInit.ldift file by hand, a cleartext password may be available.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home