Managing Password Rules
Scenarios
After creating a password rule, you can manage it from the rule list. You can execute, modify, enable, disable, or delete it, or associate it with resource accounts or account groups.
Prerequisites
Your role has the management permission for the Password Rules module. For details about the permissions of each role, see Role.
Viewing and Modifying a Password Rule
You can edit password rules to meet your changed O&M requirements. For example, you can edit when and how a password rule is executed and which accounts, account groups, and resources a password rule is used for.
A modified rule takes effect the instant its status changes to Enabled.
- Log in to your bastion host system.
- In the navigation pane on the left, choose Policy > Password Rules > Password Rule.
- View the rule list.
Table 1 Parameters in the password rule list Parameter
Description
Rule Name
Name of a password rule.
Status
Status of a password rule.
- Enabled: The rule has been enabled.
- Disabled: The rule has been disabled. To enable it, see Enabling or Disabling a Password Rule.
- Ineffective: The rule has not taken effect because the current time is earlier than the execution time configured for the rule. You can change its Execute Time to make it take effect.
- Expired: The rule has expired. The current time is later than the execution time configured for the rule. You can change its Execute Time to make it take effect.
- Incomplete: The rule has not been associated with any resource account or account group. To associate it, see Associating a Password Rule with a Resource Account or Account Group.
Timing
Execution method of the rule.
- Manual: Manually trigger the password rule to change the password of the managed resource account.
- Fixed-Time: The password change rule is triggered by the bastion host to change the password of the managed resource account at a fixed time. This type of rule is executed only once.
- Cycle: The password rule is periodically triggered by the bastion host to change the passwords of the managed resource accounts. This type of password change rule is triggered periodically.
Method
Password changing method of the rule.
- Generating a different password: The system randomly generates different passwords for managed resource accounts in compliance with password requirements.
- Generating the same password: Randomly generate the same password for managed resource accounts in compliance with password requirements.
- Specifying the same password: You need to manually enter a preset password. Enter the password as prompted. NOTE:
A password randomly generated by a bastion host contains 20 characters, including uppercase letters, lowercase letters, digits, and the following special characters %, -, _, and? A random password must contain at least an uppercase letter, a lowercase letter, and a special character.
Account
Resource accounts and account groups associated with the rule.
Operation
Operations you can perform for the rule.
- Locate the row that contains the target rule, and click the rule name or Manage in the Operation column to go to the details page.
- View and edit basic rule information.
- In the Basic Info area, view basic rule information, such as the department and status.
- Click Edit on the right of the Basic Info area. In the displayed dialog box, modify the Rule Name, Timing, Method, and Options parameters. For details, see Table 1.
- View and edit resource accounts and account groups associated with the rule.
- In the Account and AccountGroup areas, view the resource accounts or account groups associated with the rule.
- In the Account or AccountGroup area, click Edit on the right. In the displayed configuration window, add a resource account or account group to be associated.
- To remove a resource account or account group, click Remove in the row of the resource account or account group.
Executing a Password Rule Immediately
If you have created a password rule that needs to be manually executed, click Execute to manually execute a password change task. If you have created a password change rule that is executed at a scheduled time or periodically, you can also click Execute to execute a password change task immediately before its scheduled execution time.
- Log in to your bastion host system.
- In the navigation pane on the left, choose Policy > Password Rules > Password Rule.
- In the Operation column of the target rule, click Execute.
- In the displayed dialog box, click OK.
Associating a Password Rule with a Resource Account or Account Group
- Log in to your bastion host system.
- In the navigation pane on the left, choose Policy > Password Rules > Password Rule.
- In the Operation column of the target rule, click Relate and select Add Account or Add Account Group.
- In the displayed dialog box, associate the rule with a resource account or account group.
- You can associate a rule with multiple managed resource accounts or account groups at once.
- Select a resource account or account group: On the Relate Account or Relate Account Group tab, select the target resource account or account group in the Selectable accounts or Selectable account groups box, and click
to move it to the Selected accounts or Selected account groups box. - Remove a resource account or account group: On the Relate Account or Relate Account Group tab, select the target resource account or account group in the Selected accounts or Selected account groups box, and click
to remove it back to the Selectable accounts or Selectable account groups box.
- Select a resource account or account group: On the Relate Account or Relate Account Group tab, select the target resource account or account group in the Selectable accounts or Selectable account groups box, and click
- After an account group is associated with a rule, accounts automatically obtain the permissions of the rule the instant they are added to the account group.
- You can associate a rule with multiple managed resource accounts or account groups at once.
- Click OK.
Enabling or Disabling a Password Rule
- Log in to your bastion host system.
- In the navigation pane on the left, choose Policy > Password Rules > Password Rule.
- Enable or disable a password rule.
- Enabling a rule
- In the rule list, select all the target rules and click Enable in the lower left corner.
- In the displayed dialog box, click OK.
- Disabling a rule
- In the rule list, select all the target rules and click Disable in the lower left corner.
- In the displayed dialog box, click OK.
- Enabling a rule
Deleting a Password Rule
- Log in to your bastion host system.
- In the navigation pane on the left, choose Policy > Password Rules > Password Rule.
- Delete a password rule.
- Deleting a single rule
- In the row containing the target rule, click Delete in the Operation column.
- In the displayed dialog box, click OK.
- Batch deleting rules
- On the ACL rule list page, select all the target rules.
- Click Delete in the lower left corner.
- In the displayed dialog box, click OK.
- Deleting a single rule