3.2.4. 更新管理用户

您可以使用 add-user 实用程序脚本在提示时输入用户名来更新现有管理用户的设置。

$ EAP_HOME/bin/add-user.sh

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : test-user
User 'test-user' already exists and is enabled, would you like to...
 a) Update the existing user password and roles
 b) Disable the existing user
 c) Type a new username
(a):

当您输入已存在的用户名时,会显示几个选项:

  • 键入 a 以更新现有用户的密码。
  • 键入 b 以禁用现有用户。
  • c 键输入新用户名。
警告

以非交互方式使用 add-user 脚本更新用户时,用户会自动更新,无需确认提示。