weblogic9.2忘记管理密码,无法启动服务,重置密码

来源:互联网 发布:c语言素数函数根号 编辑:程序博客网 时间:2024/05/17 06:33

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 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

重启服务,密码重置成功

============================修改weblogic密码================================================

上述的只是针对忘记管理密码,可这么做,如果是记得密码,但是想修改当前密码,可直接通过控制台

 http://localhost:7001/console

登陆成功后,点击左边树:Security Realms  -->myrealm  -->选择user and group tab页 --->点击weblogic进入--->选择Passwords选项页-》输入新的密码-->save

  ---->最后Release Configuration即可,login out后可通过新的密码登陆成功

 

原创粉丝点击