Resetting Weblogic Server Admin Password:
Steps to reset the admin password of weblogic server.
- cd <DOMAIN_HOME>/security
- Rename DefaultAuthenticatorInit.ldift file to DefaultAuthenticatorInit.ldift_BKP
- Set the Environment - <DOMAIN_HOME>/bin/setDomainEnv.cmd
- java -cp <WLS_HOME>;/server/lib/weblogic.jar:$CLASSPATH weblogic.security.utils.AdminAccount NewAdminUser NewAdminPassword . (Note the . at the end of the command)
Make sure you are running the above command is executed from DOMAIN_HOME>/security, if you are executing the command from other location copy the DefaultAuthenticatorInit.ldift file created in the current location to <DOMAIN_HOME>/security
e.g java -cp C:\Oracle\MiddlewareSOA\wlserver_12.1\server\lib\weblogic.jar;%CLASSPATH% weblogic.security.utils.AdminAccount albin albin123
- Move data directory under $DOMAIN_HOME/servers/<serverName>/datato another directory like data.bak
- Edit user name and password in the following file - <DOMAIN_HOME>/servers/<Server Name>/security/boot.properties
- Restart the admin server
No comments:
Post a Comment