- 2 minutes to read
- Print
- DarkLight
- PDF
How to Synchronize Users and Groups from Active Directory
- 2 minutes to read
- Print
- DarkLight
- PDF
Requirements
To synchronize users, you will need the following:
- A user who is part of the Domain Admins group.
- An Active Directory (AD) Authentication Server registered with senhasegura. See Configure Active Directory Authentication for details.
- The location's Distinguished Name (DN) in AD to synchronize the users.
- Have a senhasegura User Group.
senhasegura's user synchronization services run every three minutes. The services check whether any users have been added or removed from your Active Directory group, and mirror any changes in the corresponding senhasegura User Group.
Create LDAP/AD Sync Group
Each group has its own set of synchronization rules, and senhasegura can use a different LDAP server for certain groups if necessary.
To synchronize your AD users with senhasegura:
Go to Settings ➔ Authentication ➔ Active Directory ➔ Group Synchronization.
Click the Action button ( ⁝ ) in the upper right corner, then click + New group.
Inside LDAP/AD group, fill in all the required information. For more details, check LDAP/AD group.
- Under the Settings tab:
- Give the group a name.
- Select the LDAP/AD Server created in the requirements.
- Select the User Group that will be used.
User permissionsMake sure to have an "Access Group" and "Role" within your "User Group," or else your users will not have any permission.
- Set Enable to yes.
- Select Synchronization to ON to make synchronization active.
- Insert the DN to be used to search for the users.
- Add an AD username attribute to be used from your AD, for example: “sAMAccountName”.
- Select an AD name attribute.
- Give a Query Filter. You can access Creating a Query Filter | Microsoft Learn to help create your own queries. For example,(&(objectClass=user)(sAMAccountName=*)(memberOf=CN=senhasegura,DC=mt4,DC=com,DC=br))
Query words limitYou can type up to 2,048 characters in the Query Filter field.
- Under the Settings tab:
(Optional) Domum tab. Only use this tab if you are using this group to be used in the Domum Senhasegura.
Under Roles tab:
- Click the + button to add a role for all users in this group.
Click Save.
Group Sync Test
To ensure that your group is synchronizing correctly and collecting the correct users, you can perform a sync test.
Follow these steps:
- Under the Action column, locate the group you want to test.
- Click on the group's Action button ( ⁝ ), and choose Synchronization test.
- In the LDAP/AD group test window, senhasegura fills in the DN and filter fields with the group's configuration values. You can change these fields for testing without affecting the original group settings.
- Click Simulate.
- A table will show the results of users being added, removed, or unchanged.
- After the simulation, Senhasegura returns the list of users in the AD group. Users are listed as added, modified, or unchanged.
If any errors occur, check out our AD Synchronization Troubleshooting article.