ApusicAS-v10-reset-password

ApusicAS-v10-reset-password

金蝶Apusic v10忘记admin密码解决方法

1、进到金蝶的存放目录下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@ics-docker ~]# cd /data/AAS/ApusicAS/aas/domains/mydomain/config/
[root@ics-docker config]# ls
aas-acc.xml admin-userConfig default-web.xml domain-passwords hazelcast-client.xml keyfile lockfile pid server.policy
aas-loadbalances.xml cacerts.jks derby.log domain.xml history-password.json keystore.jks logging.properties pid.prev wss-server-config-1.0.xml
admin-keyfile default-logging.properties domain-info.xml domain.xml.bak javaee.server.policy local-password login.conf restrict.server.policy wss-server-config-2.0.xml
# 找到admin-keyfile文件,并编辑,找到admin这一行把中间的替换成空密码{SSHA256}iU4Ef2uGWYh3V+BQjpW5f8BTbgGWzKp7pfrNU020Nu2l9YLEwCWOpA==
[root@ics-docker config]# vim admin-keyfile
audit;{SSHA256}5k5GBd0oLfGiXBx9RuA3hck9fSkBc2cs2cJlX7DFw0Kr0gQVoYJCJg==;auditor;PRIVILEGE
admin;{SSHA256}R+m9Uf3bQt17Kw+0treHGvvebTV4Hpapd9tKJFUM0r6qdD5nfQWl1w==;sysadmin;PRIVILEGE
secure;{SSHA256}L5OSy0xgPgu4vEJd9ZWTlTGoAfTsDkVoF0lRgOBNz8W5+yv9Pra5Jg==;security;PRIVILEGE
# 替换后
audit;{SSHA256}5k5GBd0oLfGiXBx9RuA3hck9fSkBc2cs2cJlX7DFw0Kr0gQVoYJCJg==;auditor;PRIVILEGE
admin;{SSHA256}iU4Ef2uGWYh3V+BQjpW5f8BTbgGWzKp7pfrNU020Nu2l9YLEwCWOpA==;sysadmin;PRIVILEGE
secure;{SSHA256}L5OSy0xgPgu4vEJd9ZWTlTGoAfTsDkVoF0lRgOBNz8W5+yv9Pra5Jg==;security;PRIVILEGE

2、替换完后进到金蝶的可执行bin目录下

1
2
3
4
5
6
7
[root@ics-docker config]# cd /data/AAS/ApusicAS/aas/bin
[root@ics-docker bin]# pwd
/data/AAS/ApusicAS/aas/bin
# 停止服务,不能直接kill 否则在启动时报错
[root@ics-docker bin]# ./asadmin stop-domain
Waiting for the domain to stop ..
Command stop-domain executed successfully.

3、停止完后再启动金蝶,此时在启动时它会需要重新设置admin密码

1
2
3
4
5
6
7
8
9
10
11
12
13
[root@ics-docker bin]# ./asadmin start-domain

This domain requires an administrative password to be set before
the domain can be started. Please specify an administrative password.
Enter an administrative password for user "admin"> # 输入admin新密码
Enter an administrative password for user "admin" again> # 再次输入admin新密码
Password for User admin has change Successfully!
Waiting for mydomain to start .................................................................................................
Successfully started the domain : mydomain
domain Location: /data/AAS/ApusicAS/aas/domains/mydomain
Log File: /data/AAS/ApusicAS/aas/domains/mydomain/logs/server.log
Admin Port: 6848
Command start-domain executed successfully.

4、启动后再进入金蝶web登录界面输入新密码登录即可


ApusicAS-v10-reset-password
https://www.dklwj.com/2024/08/ApusicAS-v10-reset-password.html
作者
阿伟
发布于
2024年8月21日
许可协议