2 Replies Latest reply: Aug 23, 2014 1:01 AM by Sreedhar-Oracle RSS

    Forgot weblogic admin server password and not able to run to reset it.

    Vachow

      Hi Folks,

       

      I forgot my Weblogic 11g server admin account details and now I'm unable to reset the password as well. I tried following the steps mentioned in ORACLE-BASE - Reset the AdminServer Password in WebLogic 11g and 12c but I couldn't execute the below mentioned java command as the required class file is not identifible. could you please assist.

       

      java weblogic.security.utils.AdminAccount newAdmin newPassword .

       

      Thanks

      Vachow@

        • 1. Re: Forgot weblogic admin server password and not able to run to reset it.
          User10656774-Oracle

          Hello,

           

          run setDomainEnv.sh (or cmd) before to set the classpath.

          Emmanuel

          • 2. Re: Forgot weblogic admin server password and not able to run to reset it.
            Sreedhar-Oracle

            Hi,

             

            To reset the password,please do the following:

            1.- Make sure Weblogic Server instance is stopped.

             

            2.- Make a backup of the LDAP folder of the admin server as well as managed servers (you may rename those folders).

             

            3. Set your environment variables by running setDomainEnv.sh (UNIX) or setDomainEnv.cmd (Windows). For UNIX only environments do as follows:

            . ./setDomainEnv.sh (Notice the space between the dots)

             

             

            4. cd to security directory in your instance.

            (eg: $WL_HOME/user_projects/domains/base_domain/security)

             

            5. Run:

            java weblogic.security.utils.AdminAccount admin_user admin_pass .

             

            Remember to change “admin_user” and “admin_pass” to your need.

             

            Also, don’t forget the period “.” at the end of the above command, it is required.

             

            6. After running the command, the file “DefaultAuthenticatorInit.ldift” will get updated.

             

            7. Delete the following file from “ldap” folder:

             

            cd WL_HOME/user_projects/domains/base_domain/servers/AdminServer/data/ldap

            rm DefaultAuthenticatormyrealmInit.initialized

             

            8. Go to folder DOMAIN_HOME/servers/AdminServer/security

             

            9. Edit the boot.properties file and change the password to the value already used on step 5. Do this for all the servers in the domain.

             

            10. Start Weblogic Server (Weblogic Server will encrypt the password for you).