What is LDAP Synchronization and how does it work?
Question
What is LDAP Synchronization and how does it work?
Environment
v5.0;v5.1;v5.3;v5.5;v5.6;v5.7;v6.0;v6.1;v6.2;v6.3;v6.4;v7.0;v7.1;v7.2;v7.5;v7.6;v8.0;v8.0 Beta;8.1;v8.2;v8.5;v8.6;v9.0;v9.1;v9.2;9.3;9.5;9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4
Answer
LDAP Synchronization is a process that removes users and groups from the vault when they no longer match a directory mapping rule or have been deleted from LDAP.
Background on LDAP integration:
Users and groups from LDAP are mapped into the vault by directory mappings. This allows LDAP users and groups to be used to access the Vault and grant ownership to safes.
In Vault environments starting with version seven three directory mappings are made for users and one for groups. The LDAP configuration wizard asks for three group names to map to “Vault Admins”, “Vault Auditors”, and “Vault Users”
Filling in these groups will create rules that will ALLOW the mapping of users who are members of that group to those vault roles. Users need to either manually logon or be added as a safe owner to become mapped, this is not an automatic process.
What is the purpose of LDAP Synchronization?
When users no longer fall into the any of the rules of the mapping either by removal from a group or deletion from LDAP the mapped user remains in the Vault. Synchronization is a process that removes these mapped users and groups from the vault, removing the end users access or group ownership.
Are there any risks with automatic removal of users and groups?
If a mapping in the vault is edited in error or there is a change in LDAP prevents the rule from being applied users and groups can be removed from the vault unintentionally. To avoid this risk changes to directory mappings should be done carefully and rules should not restrict which location in the LDAP tree a user or group is coming from.
The majority of customers whose vault started on version seven or later user the default directory mappings which do not usually need to be edited or call out specific branches structure in LDAP
Advanced customers and customers whose vaults were deployed before version seven may have directory mappings with the above risks as they were before the default rules were available. Advanced customers in this example refers to multi LDAP domain environments where users need to logon to the vault from each domain.
What options are there to control how LDAP Synchronization operates?
See this documentation page for the “AutoSyncExternalObjects”, “ExternalObjectsUpdatePolicy” and “ExternalObjectsDeletionPolicy”
The default behavior is the LDAP Synchronization process is the process will run once every twenty four hours between one and five AM, Will update any users and groups that have changes in LDAP, and will delete all users and groups that no longer exist in LDAP or no longer match a mapping rule.