twitter
    !! Tell us what you want to Learn / Know !!

Resetting weblogic Admin username and password


Step1:
Open a command prompt and navigate to the following location.

DOMAIN_HOME/SampleDomain/bin

And enter the following command setDomainEnv.cmd


Step2:
If you forgot your password move on to next step.

If you are able to access the admin console don’t forget to export data from security realms.

Security realms-->myrealm-->migration-->export

Step3:
Enter the following command

java weblogic.security.utils.AdminAccount  username  password  .


Step4:
The above command will create a new DefaultAuthenticatorInit.ldift file.


Step5:
Replace the old DefaultAuthenticatorInit.ldift file with newly created file in the following location.

SampleDomain/security


Step6:
Navigate to the following the location

SampleDomain/servers/AdminServer

Rename the data folder to data.bkp

Step7:
Navigate to the following location

SampleDomain/servers/AdminServer/security

Delete the boot.properties file and create a new boot.properties file with new username and password.

Start the server now.

Step8:
If you have exported the data from security realms, import it now.

Security realms-->myrealm-->migration-->import


0 comments:

Post a Comment