In the example below we are creating a new user name and password in WLS 10.3x :
Below are the steps for password recovery :
STEP 1 : Firstly, Stop the server if running and make sure that weblogic.jar is in the classpath.
STEP 2 : Open a command prompt and navigate to your Domain directory’s bin folder and run “setDomainEnv.cmd “
STEP 3 : Now run the following command :
“Java weblogic.security.utils.AdminAccount NewAdminUser NewAdminPassword . “
where ” NewAdminUser ” and ” NewAdminPassword ” are the new user and password you would like to create.
Note : The “ . “ (period) at the end of the command is very important..!! as it tells the command that this should be run in the domain directory.
STEP 4 : The above command creates a file “ DefaultAuthenticatorInit.ldift “ in the domain directory. ( as shown below )
STEP 5 : Now copy the newly created “DefaultAuthenticatorInit.ldift “ to “C:\bea10.3\user_projects\domains\change_password\security “
Note : You can take a backup or delete “DefaultAuthenticatorInit.ldift “ which is already present in the security folder
STEP 6 : Now edit the boot.properties file ( located in “ C:\bea10.3\user_projects\domains\change_password\servers\AdminServer\security “ ) with the new user name and password that we created ( i.e NewAdminUser and NewAdminPassword ) ( as shown below )
STEP 7 : Delete the file “ DefaultAuthenticatormyrealmInit.initialized “ located in “C:\bea10.3\user_projects\domains\change_password\servers\AdminServer\data\ldap “
STEP 8 : Now start the server and login with the new user and password.🙂