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:
1. At the command line, change directory to the domain and run the setEnv script to set the PATH and CLASSPATH.
2. Backup the existing DefaultAuthenticatorInit.ldift file in a different directory.
3. 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).
4. rm myserver/ldap/DefaultAuthenticatormyrealmInit.initialized
5. rm boot.properties (if any)
6. Reboot the admin server with "adminuser" as administrator userid
7. 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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment