It happens with most of the admins that they install Weblogic application server and forget the username and password of the console .. There are few who think only editing boot.properties file is going to help them, but that's not true... so what to do next ?? Follow below steps and reset the username/password :
Remember to take back-up of all the files mentioned below.
Before starting the process go to
Note: DomainUsingWLST is the domain that we have created and now we want to reset the username and password. (If we forgot them or for security reasons we want to change them.)
Please use .cmd or .sh according to your operating system.
Please go to:
WL_HOME\user_projects\domains\ DomainUsingWLST \security.
A file DefaultAuthenticatorInit.ldift is in this folder- as a precaution, save this file somewhere before proceeding/overwriting.
Step 1:
Open commands prompt and navigate to your weblogic Domain directory’s bin folder. Run setDomainEnv.cmd/sh or setWLSEnv
D:\bea10.3\user_projects\domains\DomainUsingWLST\bin\>setDomainEnv.cmd/sh
Step 2:
Enter:Java weblogic.security.utils.AdminAccount NewAdminUser NewAdminPassword . Where, NewAdminUser and NewAdminPassword are the User and Password you would like to create. Don’t forget the trailing dot "." it tells the command that this should be run in the domain directory.
D:\bea10.3\user_projects\domains\DomainUsingWLST>
java weblogic.security.utils.AdminAccount weblogic1 weblogic1 ./
(Here weblogic1 weblogic1 are username and password respectively)
Step 3:
The Above command creates a file, DefaultAuthenticatorInit.ldift, in the Domain directory. This file needs to be moved to the directory
WL_HOME\user_projects\domains\ DomainUsingWLST \security.
However, the old DefaultAuthenticatorInit.ldift is in this folder- as a precaution, save this old file somewhere before proceeding/overwriting.
Step 4:
Update the boot.properties file, located in:
WL_HOME\user_projects\domains\ DomainUsingWLST \servers\AdminServer\security
Change the username and password to the username and password you created in step 2 (the values will be encoded, replace with clear text).
Step 5:
Rename ldap dir located at
WL_HOME\user_projects\domains\ DomainUsingWLST \servers\AdminServer\data
Step 6:
Return to the Domain Directory, and start the server.
Step 7:
Now go to admin console and try to open it using new username and password.
The admin user and password will be reset.
Note : WL_HOME = weblogic home
No comments:
Post a Comment