Oracle Weblogic – Password Reset

Oracle Weblogic, How to Reset Username and Password:

1. Stop the weblogic server instances

2. Take a backup of the LDAP folder of the admin server and other managed servers (simply rename the folders).

3. Set environment variables for your domain by running setDomainEnv.sh (UNIX) or setDomainEnv.cmd (Windows). For UNIX environments do as follows:
. ./setDomainEnv.sh (Notice the space between the dots)

4. cd to security directory in your instance.
(eg: $WL_HOME/user_projects/domains/base_domain/security)

5. Run:
java weblogic.security.utils.AdminAccount admin_user admin_pass .

Remember to change “admin_user” and “admin_pass” to your need.

Important – don’t forget the period “.” at the end of the above command, it is required.

6. After running the command, the file “DefaultAuthenticatorInit.ldift” will get updated.

7. Delete the following file from “ldap” folder:

cd WL_HOME/user_projects/domains/base_domain/servers/AdminServer/data/ldap
rm DefaultAuthenticatormyrealmInit.initialized

IMPORTANT
It will delete the other users which is configured in LDAP
In some cases, it has been necessary to delete ldap directory for this process to work.

8. Go to folder DOMAIN_HOME/servers/AdminServer/security

9. Edit the boot.properties file and change the password as you set up in the above step (java weblogic.security.utils.AdminAccount admin_user admin_pass .). Do this for all the servers in the domain.

10. Start Weblogic Server (Weblogic Server will encrypt the password for you).
11. check the logs to varify
12. repeat above steps for other managed servers as well

Weblogic 11GR2 (10.3.6)

Steps to change the password:
---------------------------------------
1. Take the complete backup of your middleware home
2. open the console in GUI
3. goto security realms - Home >Summary of Servers >AdminServer >Summary of Security Realms
4. click on myrealm
5. goto users and groups tab
6. click on weblogic user or any other user for which you want to reset the password

7. enter the new password
8. Save it and do not close the current session
9. Now open a new browser and verify the password, you should be able to get into the console with the new password
10. Now stop the whole environment
11. go to $DOMAIN_HOME/servers
12. go to AdminServer directory then in security direcotry you will find a file boot.properties
13. keep a backup of this file
14. now open it with vi editor or other editor of your choice
15. enter the new password against the line password
16. save it.
17. do the same steps for other managed servers in your domain.
start the environment and you should be able to get into your env with new password.

Note: this is tested udder my test lab on weblogic 10.3.6, please consult the oracle documentation before applying such chnages to your environments.
Information that I publish here is intended for knowledge sharing but before applying this to your environments always check the oracle notes.
Techsteppers is not responsible for any damage that you create to your servers environment by using this document.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!