Steps to Reset the password for Weblogic Admin Console
Step 1. Run setDomainEnv.cmd/setDomainEnv.sh from your %DOMAIN_HOME%/bin
directory to set necessary domain environment variables in command prompt for
windows and shell prompt for Unix as above tool requires weblogic.jar to run.
Note: Any information below should be updated to match your
directory structures and information
%DOMAIN_HOME%
- C:\bea10\user_projects\domains\weblogic_domain\bin
Step 2. Backup or rename the DefaultAuthenticatorInit.ldift
file located under your %DOMAIN_HOME%/security directory as Step 3 creates a
new DefaultAuthenticatorInit.ldift file with modification specified.
Step 3. From %DOMAIN_HOME%/security directory run the below
command.
"java
weblogic.security.utils.AdminAccount weblogic <new_passwd> ."
Note: There is a . (DOT) at the end of the above command
which represents the Current Directory. A new “DefaultAuthenticatorInit.ldift”
file will be created after the command is executed in the current directory.
Step 4. Rename the data directory to data.bkp located under
your %DOMAIN_HOME%/servers/AdminServer.
Step 5. Rename all the instances of boot.properties to
boot.properties.bkp located under your %DOMAIN_HOME% [if any] and
%DOMAIN_HOME%/servers/AdminServer/security directory.
Step 6. Create a new boot.properties with new password as
below under %DOMAIN_HOME% [if any there was earlier] and
%DOMAIN_HOME%/servers/AdminServer/security directory. As recommended to avoid
prompting for Username and Password while starting the Weblogic instance this
step is mandatory.
boot.properties
username=weblogic
password=<new_passwd>
Note: Make sure the boot.properties is not having any extra
special characters (UTF or Invisible characters) or spaces except the above two
lines. Also there should be no Heading or Trailing SPACE character in these two
Lines.
Step 7. Issue a Startup command to Weblogic instance and
monitor the logs. If you are using Windows service for startup of Weblogic then
you might also need to delete the existing windows service and install the
windows service with new credentials. Please refer WebLogic Server instance as
Windows Service .
Step 8. Your managed servers also needs to be started with new
boot.properties. You can follow step4 to step7 or just replace all the
instances of boot.properties on your managed servers with the one on AdminServer
and rename the servers directory located under %DOMAIN_HOME% on managed servers.
Step 9. Login to the console with the new password.
No comments:
Post a Comment