1. Shutdown WebLogic Server (If Running) – Optional Step
2. Login to WebLogic Server and set environment variable
cd $DOMAIN_HOME/bin (where DOMAIN_HOME is directory in which your domain exists, default value is $MW_HOME/user_projects/domain/base_domain)
. ./setDomainEnv.sh
3. Create a initialization file using command
java weblogic.security.utils.AdminAccount
For Example
java weblogic.security.utils.AdminAccount weblogic welcome1 . (Note the DOT at end of this command)
This will create file DefaultAuthenticatorInit.ldift in directory from which you executed this command .
4. Move file DefaultAuthenticatormyrealmInit.ldift from $DOMAIN_HOME/security/ and replace it by DefaultAuthenticatorInit.ldift generated in step 3
5. Move data directory under $DOMAIN_HOME/servers/
This step will remove all existing users/groups from WebLogic’s embedded LDAP server (recreate these users/groups in setp8)
6.Recreate boot.properites (if any) under $DOMAIN_HOME/servers/
USERNAME=weblogic
PASSWORD=welcome1
7.Start (or restart) Admin Server and test if you can login to weblogic console using new username and password.
8. Recreate any users/groups(which were part of default authenticator prior to new super user creation) or import existing users (from weblogic’s servers embedded LDAP server backup)