Solution for weblogic forgot username or password

After weblogic is installed, if you forget the user name or password to access the console, you can reset the user name and password through the following steps.

Version: WebLogic Server 10.3


Description: %DOMAIN_HOME%: refers to the WebLogic Server domain (Domain) directory.
For example, the root directory of my domain for testing DOMAIN_HOME=D:/Weblogic/Middleware/user_projects/domains/base_domain

1. To ensure operational security, Backup %DOMAIN_HOME%/security/DefaultAuthenticatorInit.ldift

2. Enter the %DOMAIN_HOME%/security directory and execute the following command:
java -classpath D:/Weblogic/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils .AdminAccount username password .

For example:

cd D:\Weblogic\Middleware\user_projects\domains\base_domain\security
execute java -classpath D:/Weblogic/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils. AdminAccount weblogic weblogic .Features

Note that there is a "." at the end, a space and a dot.

This command will generate a new DefaultAuthenticatorInit.ldift file overwriting the original one.


3. Enter the AdminServer directory of the management server, such as: %DOMAIN_HOME%/servers/AdminServer. Rename the data directory in it, such as: data_old. Or back up elsewhere.


4. Modify the boot.properties file of the management server, such as: %DOMAIN_HOME%/servers/AdminServer/security /boot.properties, modify the user name and password (in plain text, the plain text will be encrypted when the server is started for the first time), It must be the same
as the username and password in the above command .

Example: After modification:
username=weblogic
password=weblogic

5. After restarting the server, you can log in to the management console with the user weblogic.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326612841&siteId=291194637