Weblogic command line to change console password

Weblogic command line to change console password

 

1. Find  the boot.properties file in the security directory under the management server of the corresponding domain . Its content is as follows:

         password={AES}mslf4i31COfxJt45PZxZESyDDq6VSQ8KKpn+9+MJK8U\=

         username={AES}RkGwB3GyOjrpi3CnhmABuG1NGxzkRoFnIDmWrMtOKEY\=

 

2. Specify the   username and password in the boot.properties file as the plaintext form of the username and password you want to modify, such as:

         password=weblogic123

         username=weblogic

 

3. Execute the following command to generate a new DefaultAuthenticatorInit.ldift file. Where $WL_HOME is the path to install Weblogic , username is the user name to be modified, password is the modified password, and there is a space and a dot after the password.

java -cp $WL_HOME/wlserver/server/lib/weblogic.jar weblogic.security.utils.AdminAccount username password .

 

         On my system it executes this command:

java -cp /home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar weblogic.security.utils.AdminAccount weblogic weblogic123 .

 

4.   Overwrite the newly generated DefaultAuthenticatorInit.ldift with the file with the same name in the security directory under the domain directory.

 

5.   Rename the data directory under servers/AdminServer under the domain to data_old for backup.

 

         After the above steps, after restarting, you can log in to the system with the new user name and password. This method was successfully tested in weblogic12.1.3 version.

 

References

http://blog.itpub.net/23071790/viewspace-717706/

 

 

 

Guess you like

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