For WebLogic server, during domain creation screen you create a user weblogic (this could be any name used during domain creation screen) and set password (user and password is stored in weblogic’s embedded LDAP server in hashed format which makes it impossible to decrypt) .
What if you forgot password for this user after installation ?This post covers steps to create another user in WebLogic domain which will act as super user or create another user with same name (weblogic) with password of your choice.
Note: This process will remove all users created in weblogic’s embedded LDAP server and there will only be one user (which will act as superuser) after doing below steps.
Steps to create another superuser in weblogic (when password of existing user is lost)
1.) Open Command prompt > run . ./setDomainEnv.sh in the %DomainHome%/bin folder.
2.) In a file browser, backup %DomainHome%/security/DefaultAuthenticatorInit.ldift, then delete the file.
3.) In command prompt, go to the %DomainHome%/security/ directory, run the following command (period is important): java weblogic.security.utils.AdminAccount weblogic MyPassword .
4.) Step 3 should create a anew DefaultAuthenticatorInit.ldift
5.) Go to %Domain_Home%/servers/%server_name%/data/, delete ldap folder. (Repeat this step for all managed servers which are part of this domain.)
6.) Clear out boot.properties
7.) Verify server starts up under new password
8.) Create new boot.properties for your weblogic server(s)
9. Start (or restart) Admin Server and test if you can login to weblogic console using new username and password.
No comments:
Post a Comment