You can use this article to configure AD/LDAP synchronization from Rainbow and validate the result before enabling automation. It helps you control which users and contacts are synchronized, how attributes are mapped, and how synchronization cycles are monitored.
AD/LDAP synchronization consists in synchronizing the company directory in Rainbow with the AD and/or LDAP directories located in company premises. Synchronization is unidirectional (one-way) from AD or LDAP directory to Rainbow.
LDAP synchronization is configured from the AD/LDAP management page of Rainbow application.
After synchronization is successful:
- Company members in LDAP directory are automatically created in Rainbow with a company subscription (i.e. the Rainbow license assigned to new members in company). Company member creation fails when there are no more Rainbow licenses available for the company.
-
Company member settings for which an LDAP/Rainbow mapping has been defined are automatically updated in Rainbow.
Note: The company member e-mail cannot be updated from LDAP directory to Rainbow. - When user deletion is enabled, company members deleted in LDAP directory are automatically set to 'pending deletion' in Rainbow, and permanently deleted after a grace period (i.e. 10 days). During this period, the deletion of company members can be cancelled from the Members panel of Rainbow administration interface.
- Optionally (if configured in Rainbow), contacts in LDAP directory are automatically created in Rainbow.
Before you start
See the prerequisites in the article: Prerequisites for AD/LDAP/Exchange connector deployment.
Configuration overview
- From the AD/LDAP management page of Rainbow application, configure the access settings to LDAP directory.
- Select the LDAP directory users and/or contacts to be synchronized.
- Optionally, modify the predefined attribute mapping between LDAP directory and Rainbow.
-
Verify configuration (dry run process), and launch a manual synchronization with LDAP directory.
Note: Manual synchronization is only available after successful dry run. - Configure periodic synchronization with LDAP directory.
- Enable/disable enrollment email to new users created in Rainbow.
The scheduled and manual synchronizations automatically generate reports available for download: see Monitoring synchronization from Rainbow.
Accessing the AD/LDAP management page
- From the Rainbow application, access the Rainbow company management page.
- Click on Members, then Import.
- Click on LDAP icon.
The AD/LDAP management page opens.
The LDAP management page is organized around maintenance, domain selection, LDAP/user criteria and business directory settings.
| Area | Purpose |
|---|---|
| Maintenance | Connector name, creation date, last seen, status, version, revoke icon and report request |
| Domain selector | Switch, rename or add a domain. Each domain has its own configuration |
| LDAP server | Bind account, host URL, synchronization period and next synchronization |
| User criteria | Base DN, filter, automatic sync, enrollment email, deletion and attribute mapping |
| Business directory | Base DN, filter and mapping for shared directory contacts |
Configuring access to LDAP directory
-
From the LDAP management page, in the AD/LDAP domain name field, enter the name identifying the LDAP directory in Rainbow.
Note: If an LDAP directory is already configured, and the company has multiple LDAP directories/domains, click on the + button to configure a new LDAP directory for the company. - In the Login and Password fields, enter the LDAP authentication credentials used by the connector service to access the LDAP directory server (use LDAP syntax for Login entry).
- In the Hostname or IP address field, enter the URL to access the LDAP directory server.
URL syntax is: ldap://hostname:[port] or ldaps://hostname:[port]
Hostname can be the name or IP address of LDAP directory server.
[port] is used to specify a non-standard port number. Default ports are 389 and 636.
Example of configuration:
Selecting the LDAP directory objects to be synchronized
The selected objects can be LDAP directory users and/or contacts of the business directory.
When the company has multiple LDAP directories/domains, these operations must be performed for each LDAP directory or domain.
The option Remove this configuration deletes user synchronization in this LDAP directory/domain but will preserve directory synchronization, if it exists.
Note: Removing the user configuration does not delete previously synchronized Rainbow users. It clears stored ldap_id values so users can be reassociated by loginEmail when a new configuration is registered.
Selecting the users to be synchronized
- From the LDAP management page, in the Users Selector section, select the LDAP directory users to be synchronized:
- Base DN: enter the root domain where the LDAP directory users are located (use LDAP syntax).
- Filter: optionally, apply a filter to synchronize only a subset of LDAP directory users (use LDAP syntax for filter definition). By default, all users in LDAP directory (person objects) are synchronized.
- Select Users deletion enabled to enable the users deleted in LDAP directory to be also deleted in Rainbow.
- Note: Validate the user deletion behavior with a test user before you enable automatic synchronization. Deleted users are set to pending deletion in Rainbow, whether the LDAP record is missing or moved to a deletion subtree.
- When Users deletion enabled is selected, select Delete missing LDAP records if any previously found LDAP directory users, which are no more found after new search, must be considered as 'to be deleted'. If Delete missing LDAP records is unselected, only records found with a new search using Base DN for deletion and Filter for deletion will be considered as "to be deleted" in Rainbow.
- In the Base DN for deletion field, enter the location on LDAP directory where the deleted LDAP directory users have been moved (use LDAP syntax).
- Optionally, in the Filter for deletion field, apply a filter to select only a subset of LDAP directory users (use LDAP syntax for filter definition).
- Click on Update.
Selecting the contacts (business directory) to be synchronized
The Business Directory Selector section is displayed only when the company subscription includes business directory synchronization. The business directory uses its own Base DN, filter and mapping. Contacts previously created by the connector service are reloaded in bulk during synchronization; contacts created by other tools are preserved.
- From the LDAP management page, in the Business Directory Selector section, select the LDAP directory contacts to be synchronized:
- Base DN: enter the root domain where the LDAP directory contacts are located (use LDAP syntax).
- Filter: optionally, apply a filter to synchronize only a subset of LDAP directory contacts (use LDAP syntax for filter definition). By default, all contacts in LDAP directory (contact objects) are synchronized.
- Click on Update
Configuring LDAP/Rainbow attribute mapping
Attribute mapping defines the correspondence between the attributes of LDAP directory and the attributes of Rainbow. Two different mapping tables must be configured for users and contacts.
Attribute mapping for users
To configure the attribute mapping table for users:
- From the AD/LDAP management page, in the Users Selector section, click on Define Attribute Mapping. The default mapping table is:
-
For each Rainbow attribute to be mapped, enter the corresponding Active Directory attribute in the LDAP Attribute column.
User attribute LDAP attribute loginEmail This attribute is mandatory and typically set to mail (default) or userPrincipalName ldap_id This attribute is mandatory and typically set to objectGUID for Microsoft Active Directory, or to another stable attribute that never changes (e.g. entryUUID or uid) for other LDAP servers.
ldap_id is a hidden field allowing to identify that users have been created by AD connector. It must contain a unique ID from LDAP directory always allocated to the same userfirstName This attribute is mandatory and typically set to givenName lastName This attribute is mandatory and typically set to sn pbxInternalNumber
pbxShortNumber
number
When the company is associated to a PBX equipment, and LDAP directory includes PBX telephone settings, these optional attributes can be configured to retrieve PBX telephone settings:
- pbxInternalNumber to retrieve the phone set numbers
- pbxShortNumber to retrieve internal numbers
- number to retrieve the public numbers
pbxLdapId attribute When the company has multiple PBX equipment, and some PBXs have the same internal number, add this attribute in the User Attribute column and enter SiteName in the LDAP Attribute column.
For each target PBX, go to: Communication > [PBX] > Information, and in the Equipment LDAP name field, enter the name of the site hosting the PBX.
country
language
timezone
These optional attributes can be set to constant values.
Syntax is Const("x") where x is:
- A three-letter code for country (e.g. Const("ARG") for Argentina)
- A two-letter code (ISO 639-1) for language (e.g. Const("de") for German)
- An area/location string for time-zone (e.g. Const("Europe/Paris"))
tags0 to tags4
userInfo1 and userInfo2
These optional attributes can be set to constant values.
Syntax is Const("x") where x is the constant value (e.g. Const("sales"))
department This attribute is optional and typically set to department nickName This optional attribute is used to add nicknames to users avatar This optional attribute is used to download photos that will be used as user avatars. It must be set to any value (e.g. True).
The photo synchronization is done after user synchronization. Photos are downloaded one by one and are not included in the CSV file.
authenticationExternalUid These attributes are used when SSO authentication is used for Rainbow and Rainbow login differs from SSO login. For example, Rainbow users authenticate with user@xxx.com, while on Microsoft SSO, they use user@xxx.msft.com. authenticationType selectedAppCustomisationTemplateName This optional attribute must contain the name of a custo-manifest.json file configured in Rainbow for company members. selectedProgKeysGroupName This optional attribute must contain the name of a group of programmable keys configured in Rainbow for company members. isActive This optional attribute is used to configure the user activation state (active or inactive) rainbowPasswordlessPolicySendToEmail When a Rainbow passwordless authentication method is assigned to users, this optional attribute is used to specify the email address on which users will receive the access code (default is their loginEmail) macAddress (*) This optional attribute is used to associate the SIP device mac address to users customSipHeader_1 (*) This optional attribute is used to define the first custom SIP header customSipHeader_2 (*) This optional attribute is used to define the second custom SIP header (*): These user attributes only apply to companies associated to Cloud PBX.
- Click on Apply to validate changes and close the mapping table.
- Click on Update.
SPECIAL CASE: an attribute mapping cannot be configured because there is no corresponding attribute in Active Directory. In this case, the Active Directory attribute can be replaced by an associated value found in a table inserted in LDAP attribute. Syntax is:
"ldapFieldName::REPLACE({"default": "value0", "table": [ { "LdapValue1": "value1" }, ... { "LdapValueN": "valueN" } ] })
Example: the Active Directory does not contain a language attribute as required but only a country attribute. In this case, language mapping can be based on country as follows:
"country::REPLACE({"default": "en", "table": [ { "France": "fr" }, { "Spain": "es" } ] })
In this example, the connector service searches for country attribute in Active Directory. If result is 'France', LDAP attribute will be set to 'fr', if result is "Spain", it will be set to 'es', and so on, and if there is no result, it will be set to 'en'.
Rainbow Hub fields
Rainbow Hub and Hybrid user creation can rely on dedicated mapped fields. Use them only when the company deployment mode requires Hub or Hybrid provisioning.
Operations on mapping values
Mapping operations can normalize LDAP values before sending them to Rainbow. Keep transformations simple and document any rule specific to your environment so support can reproduce synchronization behavior.
Multi-value LDAP attributes
For optional fields, multi-value attributes can be accepted depending on the target Rainbow field. For mandatory fields, map a single stable value only.
Multi-PBX mapping
Multi-PBX mapping is used when users from the same Rainbow company are associated with several PBX systems. Validate the mapping with a dry run and a pilot user before enabling automatic synchronization.
Default subscription
Select the default Business or Enterprise subscription that synchronized users should receive. User creation can fail when no eligible license is available.
Attribute mapping for contacts
To configure the attribute mapping table for contacts:
- From the AD/LDAP management page, in the Business Directory Selector section, click on Define Attribute Mapping.
For details on attributes, see Attribute mapping for users. - For each Rainbow attribute to be mapped, enter the corresponding LDAP directory attribute in the LDAP Attribute column.
- Click on Apply to validate changes and close the mapping table.
- Click on Update.
Verifying configuration and launching a manual synchronization with LDAP directory
From the LDAP management page, in the Users Selector section (or Business Directory Selector section for contacts), click on Dry run.
A user or contact import simulation in Rainbow is performed, and a report is displayed indicating how many users or contacts will be added/modified, detached (for users only), or deleted.
The Dry run button is available only when a connector service is associated to the Rainbow company. If the result is correct, you can launch a manual synchronization: select Do you want to start the import process?, click on Synchronize, and confirm by clicking on Synchronize again.
If the result is empty or unexpected, use Save logs... option from the connector service configuration page and control generated CSV files and rejected records (duplicate loginEmail, license exhaustion or PBX conflicts).
Configuring periodic synchronization with LDAP directory
Periodic synchronization can be enabled or disabled for LDAP directory users only, or for contacts only.
Enable automatic synchronization only after dry run, first effective import and deletion behavior have been validated.
To program periodic synchronization:
- From the LDAP management page, in the Users Selector section (or Business Directory Selector section for contacts), select Automatic users synchronization enabled (or Automatic contacts synchronization enabled for contacts).
- In the same section, in the Synchronization period (hour) field, enter the interval time between two synchronizations (from 1 to 168 hours).
- In the Next synchronization field, enter the date and time of the next synchronization.
- Leave Differential synchronization mode unselected: the option is displayed in the Users Selector section, but the current connector performs a full synchronization at each run (see Differential mode below).
- Click on Update.
To interrupt periodic synchronization, from the AD/LDAP management page, in the Users Selector section (or Business Directory Selector section for contacts), unselect Automatic users synchronization enabled (or Automatic contacts synchronization enabled).
When you change a critical parameter of the LDAP configuration and click Update, the synchronization is reset and automatic synchronization is deactivated. Verify the new configuration with Dry run before you reactivate automatic synchronization.
Enabling/disabling enrollment email to new users
- From the LDAP management page, in the Users Selector section, select or unselect Send enrollment email to new users.
If enabled, new users are notified by email they have a user account in Rainbow. - Click on Update
Monitoring synchronization reports from Rainbow
The report on the last synchronization is directly available in the LDAP management page.
Click on the report to display all the synchronization tasks (users/contacts created, updated and deleted) and their status (success, warning, failure).
Available actions are:
- To download the report, click on Save Reports, and download it in Excel format.
- To delete the report, click on the icon to the right of the report.
- To access all the previous reports, click on Sync reports tab at the top of the window.
In Done by column, the connector service indicates the report concerns an LDAP directory synchronization.
In Description column, manual_synchro indicates a manual synchronization and auto-interval a scheduled synchronization.
You can also use any of the following:
- The connector service management page to monitor connector connection status, LDAP counters and last/next synchronization.
- The equipment history in Rainbow application for connector registration, start/stop, configuration and sync events.
Synchronization key features
Behavior with existing Rainbow users
When a synchronized LDAP record matches an existing Rainbow user, the connector can associate the LDAP record with that user instead of creating a duplicate. The main matching key is typically loginEmail.
User creation
- A matching LDAP record can create a Rainbow user when mandatory mapped fields are present.
- User creation requires an available eligible license in the company.
- Enrollment email can be sent to newly created users when enabled in the AD/LDAP management page.
- PBX or device association can be applied when the required mapping is configured.
Deletion strategies
| Strategy | Behavior | When to use |
|---|---|---|
| Delete missing LDAP records | Users no longer returned by the LDAP search are set to pending deletion in Rainbow. | Simple directories, where a user missing from the search has left the company. |
| Deletion subtree | Users are set to pending deletion in Rainbow when moved to a dedicated LDAP subtree. | Directories where removal from the main OU is not enough to mean deletion. |
Active Directory detection
The connector adapts some behavior when the server is detected as Microsoft Active Directory, for example default mapping and avatar synchronization. For non-AD servers, review ldap_id and mandatory mappings carefully.
Avatar synchronization
Avatar synchronization is available for Microsoft Active Directory. The connector reads the mapped photo attribute, typically thumbnailPhoto, detects changes and uploads the avatar after user processing.
- The LDAP service account must be allowed to read the photo attribute.
- Large directories can require additional time because avatars are processed after users.
- If avatars are not updated, verify mapping, permissions and connector logs.
Differential mode
Differential synchronization is planned. In the current connector behavior, full synchronization is performed at each run even if the UI exposes a differential synchronization setting.