Managing Account Synchronization Rules
Scenarios
After creating an account synchronization 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 Sync Rules module. For details about the permissions of each role, see Role.
Viewing and Editing an Account Synchronization Rule
You can edit a synchronization rule to meet your changed requirements. For example, you can edit when and how a synchronization rule is executed and which accounts, account groups, and resources a synchronization rule is used for.
A modified rule takes effect the instant its status changes to Enabled.
- Log in to your bastion host system.
- Choose Policy > Sync Rules. The Sync Rule tab page is displayed.
- View the rule list.
Table 1 Parameters in the account synchronization rule list Parameter
Description
Rule Name
Name of an account synchronization rule.
Status
Status of an account synchronization rule.
- Enabled: The rule has been enabled.
- Disabled: The rule has been disabled. To enable it, see Enabling or Disabling an Account Synchronization 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 an Execution Account or Account Group with an Account Synchronization Rule.
Timing
Execution method of the rule.
- Manual: Manually trigger the rule to change the password of the managed resource accounts.
- Fixed-Time: The 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 rule is periodically triggered by the bastion host to change the password of the managed resource account. This type of rule is triggered periodically.
Action
Synchronization action of the rule.
- Pull Account: Scans all accounts of a host and collects statistics on all normal and abnormal accounts.
- Push Account: Pushes accounts to a host to automatically update account passwords, create accounts, or delete invalid accounts of the host.
If Action is set to Push Account, the following three options are available:
- Allow update of the account password if inconsistent
- Allow creation of the account if not exist on remote host
- Allow deletion of the account if not registered in system
Execute 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 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, and Action of the rule. For details, see Table 1.
- View and edit execution accounts and execution account groups associated with the rule.
- In the Execute Account and Execute Account Group areas, view the resource accounts or account groups associated with the rule.
- Click Edit on the right of the Execute Account or Execute Account Group area. In the displayed dialog box, you can immediately add the associated resource account or account group.
- To remove an execution account or account group, click Remove in its row. This operation will immediately delete the execution account or account group and cancel the authorization.
Executing an Account Synchronization 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.
- Choose Policy > Sync Rules. The Sync Rule tab page is displayed.
- In the Operation column of the target rule, click Execute.
- In the displayed dialog box, click OK.
Associating an Execution Account or Account Group with an Account Synchronization Rule
- Log in to your bastion host system.
- Choose Policy > Sync Rules. The Sync Rule tab page is displayed.
- In the Operation column of the target rule, click Relate and choose Execute Account or Execute Account Group.
- In the displayed dialog box, associate the execution account or account group.
- You can associate a rule with multiple managed resource accounts or account groups at once.
- Select an execution account or account group: On the Execute Account or Execute Account Group tab, select a resource account or account group from the Selectable accounts or Selectable account groups area, and click
to move it to the Selected accounts or Selected account groups area. - Remove an execution account or account group: On the Execution Account or Execution Account Group tab page, select a resource account or account group from the Selected accounts or Selected account groups area, and click
to move it to the Selectable accounts or Selectable account groups area.
- Select an execution account or account group: On the Execute Account or Execute Account Group tab, select a resource account or account group from the Selectable accounts or Selectable account groups area, 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 an Account Synchronization Rule
- Log in to your bastion host system.
- Choose Policy > Sync Rules. The Sync Rule tab page is displayed.
- Enable or disable an account synchronization 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 an Account Synchronization Rule
- Log in to your bastion host system.
- Choose Policy > Sync Rules. The Sync Rule tab page is displayed.
- Delete an account synchronization 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