It's all about Weblogic..!!

May 31, 2010

Steps to reset console password in WLS 9x and above :

Filed under: * Security — streethawkz @ 1:46 pm

In the example below we are creating a new user name and password in WLS 10.3x :

.

Below are the steps for password recovery  :

STEP 1 :  Firstly, Stop the server if running and make sure that weblogic.jar is in the classpath.

STEP 2 : Open a command prompt and navigate to your Domain directory’s bin folder and run “setDomainEnv.cmd “

STEP 3 : Now run the following command :

“Java weblogic.security.utils.AdminAccount NewAdminUser NewAdminPassword . “

where ” NewAdminUser ” and ” NewAdminPassword ” are the new user and password you would like to create.

Note : The “ . “ (period) at the end of the command is very important..!! as it tells the command that this should be run in the domain directory.

STEP 4 : The above command creates a file “ DefaultAuthenticatorInit.ldift “ in the domain directory. ( as shown below )

.

.

STEP 5 :  Now copy the newly created “DefaultAuthenticatorInit.ldift “ to “C:\bea10.3\user_projects\domains\change_password\security “

Note : You can take a backup or delete  “DefaultAuthenticatorInit.ldift “ which is already present in the security folder

STEP 6 :  Now edit the boot.properties file ( located in “ C:\bea10.3\user_projects\domains\change_password\servers\AdminServer\security  “ ) with the new user name and password that we created ( i.e NewAdminUser  and NewAdminPassword ) ( as shown below )

.

STEP 7Delete the file “ DefaultAuthenticatormyrealmInit.initialized “ located in “C:\bea10.3\user_projects\domains\change_password\servers\AdminServer\data\ldap “

STEP 8 : Now start the server and login with the new user and password.🙂

3 Comments »

  1. I was getting the following errors in WLS 10.3.3 :

    ” #### <>
    #### <>
    #### <> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: User weblogic is not permitted to boot the server; The server policy may have changed in such a way that the user is no longer able to boot the server.Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.
    weblogic.security.SecurityInitializationException: User weblogic is not permitted to boot the server; The server policy may have changed in such a way that the user is no longer able to boot the server.Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:1009)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
    at weblogic.security.SecurityService.start(SecurityService.java:141)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) "

    The error was seen because I accidentally deleted the Admin group in Global roles.

    Solution :

    Try the above steps and rename the LDAP folder after that.

    The server was started successfully🙂

    Comment by streethawkz — November 15, 2010 @ 9:02 pm

    • The last step (removing ldap directory) is needed, at least, in certain situations — Thanks for the post.

      Comment by Anees Ahmad — December 6, 2010 @ 10:53 pm

  2. Love this tutorial, thanks!

    Comment by Kristobal — July 31, 2013 @ 2:30 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: