Linux修改用户名密码后,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:960)
	at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
	at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
	at weblogic.security.SecurityService.start(SecurityService.java:141)
	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
	Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User zhangxue javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User zhangxue denied
	at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
	at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	Truncated. see log file for complete stacktrace


遇到此错误,找到weblogic下AdminServer/sercurity文件夹下的boot.properties文件,用编辑器打开后,用户名和密码使用abs加密的,这个不用管,直接修改成明文的用户名密码,重启服务即可。


### WebLogic 服务器启动时的默认账号密码及配置方法 WebLogic 的默认用户名密码通常设置为 `weblogic` 和 `weblogic`,这是在安装过程中如果没有更改的情况下使用的初始凭证[^1]。如果忘记了这些凭证或者需要重新配置它们,则可以通过以下方式实现。 #### 修改或重置 WebLogic 账号密码的方法 对于不同版本的 WebLogic(如 10.3.x 或更高版本),可以采用不同的工具来完成密码重置操作: - **通过 AdminAccount 工具重置密码** 使用 Java 提供的 `AdminAccount` 类能够轻松地更新管理员账户的信息。例如,在 Linux 系统上运行下面这条命令即可完成对用户的修改: ```bash java -classpath /path/to/weblogic.jar weblogic.security.utils.AdminAccount new_username new_password domain_directory ``` 这里的 `/path/to/weblogic.jar` 是指向实际路径下的 `weblogic.jar` 文件位置;而 `new_username`, `new_password` 则是你希望设定的新用户名与新密码;最后参数代表域目录的位置[^4]。 - **免密登录配置** 如果想让服务无需手动输入密码就能正常启动,可以在环境变量文件 `.bash_profile` 中定义相关属性,或者是直接编辑启动脚本 `startWebLogic.sh` 来嵌入必要的认证数据。具体做法是在该脚本里加入类似这样的行: ```bash export WEBLOGIC_USER="your_user" export WEBLOGIC_PASSWORD="your_pass" ``` 此外还可以利用加密后的密码存储机制进一步增强安全性,避免明文暴露风险[^3]。 #### 启动服务器实例化流程 当一切准备就绪之后,就可以按照常规步骤开启 WebLogic Server 实例了。比如切换到对应的 Domain Home 下并执行相应的 Shell Script: ```bash cd $DOMAIN_HOME nohup ./startWebLogic.sh & ``` 这会以后台模式运行进程,并将日志输出保存至 nohup.out 文件当中以便后续查看状态信息[^2]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值