Reset lost weblogic admin password

August 30, 2010  |  linux, security, weblogic

If any of you ever lost the weblogic adminserver password or any other weblogic server (for instance your forms and reports server 11g enterprise manager password),  and want to reset it, these are the steps to do it on weblogic 10.3 (11g)

# set environment variables
export MWHOME=/u01/app/oracle/product/middleware
export DOMAIN_HOME=$MWHOME/user_projects/domains/base_domain
export CLASSPATH=$CLASSPATH:$MWHOME/wlserver_10.3/server/lib/weblogic.jar
cd $DOMAIN_HOME/bin
. ./setDomainEnv.sh

# creating a new default authenticator

cd ../security
mv DefaultAuthenticatorInit.ldift oldDefaultAuthenticator
java weblogic.security.utils.AdminAccount weblogic mynewpass .

# removing boot.properties if exists
cd ../servers/AdminServer
mv data data_old
cd security/
mv boot.properties oldboot.properties

# restart the admin server with the new password
cd $DOMAIN_HOME
./startWebLogic.sh

Hope it helps someone …

PS: to provide better look and offer my reader more resources, my site is now supported by advertising. If you feel that it very annoying, please give me some feedback. If you think it deserves to be clicked… just do it


12 Comments


  1. Thank you, it helped me. Much appreciated.

  2. Thanks, it did help me (too).

  3. Thanks – did the trick!

  4. WOW , WOW it worked great.
    Hats off to you Sir!

  5. It’s works in windows too, but need change some commands ans .sh for .cmd

    ty!

  6. Really nice! Thank you much!

  7. thanks for this

  8. Thanks a lot for this man, saved me a lot of embarassment. I converted it to a windows batch file, but it still worked perfectly. Thanks a lot.

  9. in Windows:

    echo set variables
    set MWHOME=C:\INGENIERIA\Appl\Server\WebLogic
    set DOMAIN_HOME=%MWHOME%\user_projects\domains\domain_corporates
    set CLASSPATH=%MWHOME%\wlserver_10.3\server\lib\weblogic.jar
    cd %DOMAIN_HOME%\bin
    .\setDomainEnv.cmd

    echo creating a new default authenticator
    cd .\security
    MOVE /Y DefaultAuthenticatorInit.ldift oldDefaultAuthenticator
    java weblogic.security.utils.AdminAccount weblogic mynewpass .

    echo removing boot.properties if exists
    cd ..\servers\AdminServer
    MOVE /Y data data_old
    cd security\
    MOVE /Y boot.properties oldboot.properties

    echo restart the admin server with the new password
    cd %DOMAIN_HOME%
    .\startWebLogic.cmd

  10. Hey!!! Wonderful

    It worked , thanks a lot!!

  11. Thanks for detailed step it. It works fine and saved us

Leave a Reply