Link to home
Create AccountLog in
Avatar of willa666
willa666Flag for United States of America

asked on

weblogic password

We have had some new BEA weblogic 8.1.4 servers installed on linux.

when they where instaklke dthe domains where created and the installer used the weblogic username as the account used to start admin server.

now i changed the password for the weblogic acount and i am having problems when i try to restart the admin server becase the encrypted password in the boot.properties is incorrect.

how cant i modify this password that is used?

Will
Avatar of willa666
willa666
Flag of United States of America image

ASKER

Well i think that i can change this passwor dby running the BEA weblogic config wizard. but i get this error when starting config.sh in putty.

"Unable to instantiate GUI, defaulting to console mode."
ASKER CERTIFIED SOLUTION
Avatar of Becky
Becky
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Ajar
Ajar

You can use the  
$>> java weblogic.security.utils.AdminAccount  username password <domain-path>
command to create a new admin account in weblogic domain

read more on this at  http://dev2dev.bea.com/pub/a/2004/07/WLSAdmin_bpr.html
Avatar of sompol_kiatkamolchai
Or you may delete boot.properties file. Next time you're starting server, it will ask you for username and password.

Just another choice.
Sompol
boot.properties file only stores credentials to start weblogic in dev mode
hi,

i don't agree with Ajar on boot.properties. It works in both mode.

Emmanuel
Hi,

To recover the administrator password in a WebLogic domain:

    * At the command line, change directory to the domain and run the setEnv script to set the PATH and CLASSPATH.
    * Create a new DefaultAuthenticatorInit.ldift: run java weblogic.security.utils.AdminAccount <tempadmin> <temppassword> ./
    * Remove the initialized status file, DefaultAuthenticatormyrealmInit.initialized from the <Domain>/<Server>/ldap subdirectory.
    * Restart the server, using the new user identity.
    * To change the old admin user identity, log into the admin console. (Optional)

http://edocs.bea.com/wli/docs70/config/samplcfg.htm

R.K
It really doesn't have to be that complicated.  Like I said (and I think this is a dead question because we've had no response):

replace the old encrypted password in boot.properties with your new password in plain text.  The next time Weblogic starts it will encrypt your new password for you in  boot.properties.

It's just that simple.
1. Compile following code in server root.
2. Copy & rename startWeblogic.cmd
3. Edit it to call following class & run it.

Following code worked for

import weblogic.security.internal.BootProperties;

public class RecoverPassword {
    public static void main(String[] args) {
        BootProperties.load(null, false);
            BootProperties bootp = BootProperties.getBootProperties();
            System.out.println(bootp.getOne() + "/" + bootp.getTwo());
      }
}