恢复weblogic密码

Issue:
Administrator password was changed and no one knows what it is.

Solution:
As there is no procedure to override the userid's password, you have to create a new administrator userid and use it to start WebLogic.

Following are the steps to recover an admin user when you have lost an administrator's password.
For example create a userid "adminuser" with a password "weblogic"

1. From a DOS or UNIX prompt cd to the WebLogic domain directory and run setEnv.cmd/setEnv.sh
Make sure your environment gets set correctly, check that WL_HOME is set. If not trying running setEnv.sh like this:

. ./setEnv.sh (there is a dot "." then a space then ./setEnv.sh)

Create an initialization file for the default authenticator

java weblogic.security.utils.AdminAccount adminuser weblogic .

Don't forget to add the "." it is needed.

This should produce a DefaultAuthenticatorInit.ldift in the domains directory.

2. Delete the DefaultAuthenticatormyrealmInit.initialized from /webserv/DomainName/WebLogicAdmin/ldap

3. Once you delete this file and try to start the admin server it gets recreated using the DefaultAuthenticatorInit.ldift file as a template.

4. Rename the boot.properties file.

5. Edit the setEnv.cmd/setEnv.sh file and change:

WLS_USER=adminuser
WLS_PW=web logic

6. Reboot the admin server. If running as a single server, then use the startPIA command.

7. Put the boot.properties file back to it's original name and change so it looks like the one below:

username=adminuser
password=we blogic

8. Restart the admin server and those values will then get encrypted.

9. You can now go into the console and fix the system password if you wish or keep using the adminuser account. To fix the system password from the console, logon as adminuser and navigate to:
Security / Realms / myrealm / users - Click on system, Next to Password click on Change. Enter the new password and click apply.

你可能感兴趣的:(weblogic,unix,Security,dos,Go)