1. 程式人生 > >weblogic忘記管理密碼,無法啟動服務,重置密碼

weblogic忘記管理密碼,無法啟動服務,重置密碼

weblogic9.2,由於前一天在通過console管理控制檯修改了weblogic的管理密碼,後來發現自己啟動weblogic服務有如下的問題

weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed sinc

e the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
 at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.
Java
:941)
 at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1029)
 at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:849)
 at weblogic.security.SecurityService.start(SecurityService.java:141)
 at weblogic.t3.srvr.Sub
system
Request.run(SubsystemRequest.java:64)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

通過錯誤的提示,發現原來是修改了使用者名稱,密碼,導致啟動失敗,可先進入boot.properties的檔案,修改D:\Program Files\BEA\user_projects\domains\BEAdomains\servers\AdminServer\security\boot.properties

檔案,修改password=weblogic username=weblogic,重新啟動,發現重啟服務之後boot.properties的username和password並沒有自動轉換為加密字元,然後而且啟動服務仍然失敗,而又想到weblogic集成了ldap協議,故嘗試刪除當前domains下面的ldap目錄(D:\Program Files\BEA\user_projects\domains\BEAdomains\servers\AdminServer\data\ldap),

重新啟動,發現啟動正常,console通過weblogic/weblogic也可正常,至此,重置密碼功能成功

總結下來,weblogic重置密碼分為以下兩步:

1:修改當前domain下面的boot.properties檔案中的username和password

    位置: 安裝路徑\domains\自定義domain名稱\servers\AdminServer\security\boot.properties

2:刪除當前domain目錄下面ldap目錄

   位置:安裝路徑\domains\自定義domain名稱\servers\AdminServer\data\ldap

重啟服務,密碼重置成功

============================修改weblogic密碼================================================

上述的只是針對忘記管理密碼,可這麼做,如果是記得密碼,但是想修改當前密碼,可直接通過控制檯

 http://localhost:7001/console

登陸成功後,點選左邊樹:Security Realms  -->myrealm  -->選擇user and group tab頁 --->點選weblogic進入--->選擇Passwords選項頁-》輸入新的密碼-->save

  ---->最後Release Configuration即可,login out後可通過新的密碼登陸成功

轉載自:http://www.07net01.com/linux/weblogic9_2wangjiguanlimima_wufaqidongfuwu_zhongzhimima_216171_1366190643.html