Steps to recover lost "weblogic" password:
1. Shutdown your weblogic instance if its running, using the command:
$ cd MW_HOME/user_projects/domains/base_domain/bin
$ ./stopWebLogic.sh
2. Set your environment variables using setDomainEnv.sh:
$ cd MW_HOME/user_projects/domains/base_domain/bin
$ . ./setDomainEnv.sh
3. It is important to change your home directory to this "security" folder in order to perform the change password command.
Run the following commands:
$ cd MW_HOME/user_projects/domains/base_domain/security
$ java weblogic.security.utils.AdminAccount adminuser1 welcome1 .
[ Note1: Don't forget the period "." at the end of the above command, it is required. ]
[ Note2: After running the above command, the file "DefaultAuthenticatorInit.ldift" gets updated. ]
4. Delete the following file from "ldap" folder:
$ cd MW_HOME/user_projects/domains/base_domain/servers/AdminServer/data/ldap
$ rm DefaultAuthenticatormyrealmInit.initialized
[ Note3: A new file will be automatically created when weblogic is started. ]
5. Startup weblogic server using the newly created "adminuser1" account.
$ cd /scratch/aime1/work1/mwps1/user_projects/domains/base_domain/bin
$ ./startWebLogic.sh
Enter username to boot WebLogic server: adminuser1
Enter password to boot WebLogic server: <newly created password>
6. Logon to /console with the new administrative user - "adminuser1" (and not "weblogic")
7. Under 'Security Realms', you can see two admin users 'adminuser1' and 'weblogic', go ahead and change the password for user 'weblogic'.
No comments:
Post a Comment