Skip to content

If Weblogic Administrator Password is lost How to change it ?

August 13, 2010

Worked for me on 10.3.2 and 10.3.3 (Fusion Middleware 11g)

Files invovled in changing password

1. DefaultAuthenticatorInit.ldift located in $ORACLE_HOME/user_projects/domains/YourDomainName/security
2. DefaultAuthenticatormyrealmInit.initialized located in $ORACLE_HOME/user_projects/domains/YourDomainName/servers/AdminServer/data/ldap

Weblogic Domain administrator username and password is stored in DefaultAuthenticatorInit.ldift

When Admin server is started default it checks DefaultAuthenticatorInit.ldift file for authentication.

Steps to recover password

1. Setting environment for the domain you want to change the password

$ cd $ORACLE_HOME/user_projects/domains/yourdomain/bin

$ . ./setDomainEnv.sh

2. shutdown the WLS Admin server.

$cd $ORACLE_HOME/user_projects/domains/yourdomain/bin

$sh stopWebLogic.sh

3. Change to security directory and remove DefaultAuthenticatorInit.ldift file

$cd $ORACLE_HOME/user_projects/domains/YourDomainName/security

$rm DefaultAuthenticatorInit.ldift

4. create DefaultAuthenticatorInit.ldift file in security folder

$cd $ORACLE_HOME/user_projects/domains/YourDomainName/security

$java weblogic.security.utils.AdminAccount weblogic weblogicadmin .

(Dot in the end of the above line indicates current directory)

Above java command creates DefaultAuthenticatorInit.ldift file

5. Delete DefaultAuthenticatormyrealmInit.initialized in $ORACLE_HOME/user_projects/domains/YourDomainName/servers/AdminServer/data/ldap

6. Start the weblogic server cd $ORACLE_HOME/user_projects/domains/YourDomainName/bin

$sh startWebLogic.sh

7. Want to put startWebLogic.sh in nohup then you need to change the password in boot.properties files

boot.properties which you need to change is located in  $ORACLE_HOME/user_projects/domains/YourDomainName/servers/AdminServer/security/

If you dont have security directory in Adminserver create one and touch boot.properties file and add username and password of webloigic administrator

password=XXXXXXXXXXXXXXXx
username=weblogic


Reference : 638357.1 E-WL: WebLogic 8.1 – Loss of Administrator Password

Related Links

1. Weblogic Server Installation

2. Weblogic Server Clustering

3. Configuring  Oracle Single Sign-on for Weblogic Server

4.  Increasing the Heap Size in Weblogic Server

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s