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

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后可通过新的密码登陆成功

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值