After Weblogic is installed, you do not need to use it for a long time. If you forget the user name or password for accessing the console, follow these steps to reset the user name and password.
Version: WebLogic Server 11g
%: % Domain_home %: indicates the WebLogic Server domain directory.
For example, the root directory of my testing domain domain_home = D:/bea10/user_projects/domains/testcluster_domain
1. Backup % domain_home %/security/defaultauthenticatorinit. ldift to ensure operation security
2. Go to the % domain_home %/security directory and run the following command:
Java-classpath D:/bea10/wlserver_10.0/Server/lib/weblogic. Jar weblogic. Security. utils. adminaccount <newadminusername> <newadminpassword>.
For example:
Open a cmd window and enter D:/BEA/user_projects/domains/base_domain/security
Run Java-classpath D:/BEA/wlserver_10.3/Server/lib/weblogic. Jar weblogic. Security. utils. adminaccount WebLogic weblogic.
Note that there is a ".", a space, and a point at the end.
This command will generate a new defaauthauthenticatorinit. ldift file to overwrite the original one.
3. Enter the adminserver directory of the Management Server, for example, % domain_home %/servers/adminserver. Rename the data directory, for example, data_old. Or back up the data to another place.
4. modify the boot. properties file, for example, % domain_home %/servers/adminserver/security/boot. properties to modify the user name and password (in plain text, the plaintext will be encrypted when the server is started for the first time ).
The username and password are consistent.
For example, after modification:
Username = weblogic
Password = weblogic
5. After restarting the server, you can log on to the management console using weblogic.
After the first startup, the username and password in % domain_home %/servers/adminserver/security/boot. properties are encrypted:
# Tue Feb 09:55:44 CST 2012
Password = {AES} ecaeswlbym9a6zi6h3161acl85bwddouz2 + faamp1s \ =
Username = {AES} yvunv07/yi3ejhduoujwl/s1judamflpm9/ixab1_to \ =