Showing posts with label weblogic. Show all posts
Showing posts with label weblogic. Show all posts

Tuesday, June 01, 2010

Reset password Weblogic Console

Forgot password to login WebLogic Server Administrator Console, After installed Oracle EM 11g Grid.
* Authentication Denied

some steps to Fun ...
$ export DOMAIN_HOME=/u01/app/Oracle/gc_inst/user_projects/domains/GCDomain
$ cd $DOMAIN_HOME/bin
$ . setDomainEnv.sh
$ cd security/
$ mv DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit.ldift_old
$ java weblogic.security.utils.AdminAccount weblogic password .
$ ls -l DefaultAuthenticatorInit.ldift
-rw-r--r-- 1 oracle oinstall 3301 Jun 1 18:46 DefaultAuthenticatorInit.ldift

$ cd ../servers/EMGC_ADMINSERVER/
$ mv data data_old
$ cd security/
$ mv boot.properties boot.properties_old
$ cd $DOMAIN_HOME
$ ./startWebLogic.sh
.
.
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://hostname:port/console *
***************************************************
starting weblogic with Java version:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Starting WLS with line:
.
.
.
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:password
.
.
.
<Jun 1, 2010 7:12:21 PM ICT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Jun 1, 2010 7:12:33 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Jun 1, 2010 7:12:33 PM ICT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
Ctrl-C
check boot.properties file
$ ls ./servers/EMGC_ADMINSERVER/security/boot.properties
ls: ./servers/EMGC_ADMINSERVER/security/boot.properties: No such file or directory
then create boot.properties file
$ cat ./servers/EMGC_ADMINSERVER/security/boot.properties
username=weblogic
password=password
and then start WebLogic again.
$ ./startWebLogic.sh &
Checking
- check boot.properties file.
$ cat ./servers/EMGC_ADMINSERVER/security/boot.properties
password={AES}4R+5Tu48BpEKFH9zbrTxvbG5EZywMIpecpNxsV1+YAk\=
username={AES}OvsVXimdPC6X8TrgyzzjC9YT2Z+9I2o3KNvih8vHyWw\
- login WebLogic Server Administrator Console with new password

-)