Friday, September 28, 2012

Resetting weblogic OBIEE admin password / creating new OBIEE admin user / forgot weblogic admin password

During the installation of OBIEE 11g on my humble 6 year old Thinkpad laptop, I came across this error where the admin user namely weblogic was not able to login after the installation even though the password was correctly typed.

Tried shutting down the service and restarting it from command line but Admin server (weblogic) refused to start citing authentication problem for the admin “weblogic” user.

The best way to resolve this is to create another admin user and then login with this new user in the Fusion Middleware console and then change the password for the old admin user “weblogic”.

  1. open a cmd prompt and cd to $DOMAIN_HOME\bin e.g. D:\OBIEE11g\user_projects\domains\bifoundation_domain\bin
  2. and execute setDomainEnv.cmd
  3. in the directory D:\OBIEE11g\user_projects\domains\bifoundation_domain\security rename DefaultAuthenticatorInit.ldift file to DefaultAuthenticatorInit.ldift.org
  4. generate a new admin user and password by
    cd D:\OBIEE11g\user_projects\domains\bifoundation_domain\security
    java weblogic.security.utils.AdminAccount rtadmin rtpass .
    note:
    rtadmin is the new admin user
    rtpass is the password for the new admin user
    .(dot) after password will create a new default authenticator file “DefaultAuthenticatorInit.ldift” in the current directory (which is the “security” directory).
  5. rename boot.properties located in D:\OBIEE11g\user_projects\domains\bifoundation_domain\servers\AdminServer\security to boot.properties.bak
  6. rename DefaultAuthenticatormyrealmInit.initialized located in D:\OBIEE11g\user_projects\domains\bifoundation_domain\servers\AdminServer\data\ldap to DefaultAuthenticatormyrealmInit.initialized.bak
    note: it’s a good idea to backup the entire D:\OBIEE11g\user_projects\domains\bifoundation_domain\servers\AdminServer\data directory
  7. open a cmd prompt and start the Admin server
    D:\OBIEE11g\user_projects\domains\bifoundation_domain\bin>startWebLogic.cmd
    provide the new admin username and password: rtadmin/rtpass
  8. the weblogic server should start and you should have access to the weblogic console http://localhost:7001/console/
    Login to weblogic console with the new admin user and go to Security Realms –> myrealm. select the users and Groups tab


  9. change the password fro the old admin user “weblogic”
    save and logout. Test things work fine by logging in as “weblogic” use with the new password.
  10. in the directory D:\OBIEE11g\user_projects\domains\bifoundation_domain\servers\AdminServer\security create the boot.properties. This file contains the username and password of the admin user. when you start the services, the username and password will be encrypted.
Note: if you delete or rename the data directory located in D:\OBIEE11g\user_projects\domains\bifoundation_domain\servers\AdminServer\data, weblogic will create a new data/ldap directory BUT important users like  BISystemUser and OracleSystemUser will no longer be available and your service will not start properly.

1 comment:

Anonymous said...

THANK YOU, THANK YOU, THANK YOU SO MUCH FOR THIS, YOU DON'T HAVE IDEA HOW MUCH IT HELPS ME, THANK YOU