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 since 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.SubsystemRequest.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
重启服务,密码重置成功