The Active Directory Provisioning plugin will be available with the release of the Memority Integration Tool (MIT) 3.0.0.
Memority's Active Directory & LDAP connector can provision an Active Directory or any LDAP directory. Some prerequisites must be met before the application can be provisioned.
This page explains how provisioning works in Memority and the prerequisites required to provision a directory.
Definitions
What is provisioning?
See the definition of provisioning on the REST provisioning page.
Memority Active Directory & LDAP connector
The Memority Active Directory & LDAP connector creates, updates and, when needed, deactivates or deletes objects in a target directory (user accounts, groups or organizations) with LDAPS commands.
The Active Directory & LDAP connector, like all other Memority connectors, computes the delta between Memority data and target data at each event occurring on the Memority object to determine the action to perform:
-
Create a new object
-
Link an existing object
-
Update an existing object
-
Delete / Deactivate an existing object
To perform these actions, the Memority Active Directory & LDAP connector relies on five methods: SEARCH, GET, CREATE, UPDATE and DELETE.
When an event is detected on an object, and that event impacts the provisioning because it has been defined in mapped attributes, then the following process will be triggered:
-
If an application’s object is already linked to the Memority’s object, the connector uses the GET method to check whether there is a delta between Memority and application object
-
If a Memority object to provision is not linked to an existing application object, the connector uses the SEARCH method to check whether an existing application object already matches
-
Whenever an action method is called (CREATE, UPDATE or DELETE), a GET is performed afterwards to check that the provisioning succeeded. This means that the connector sends three requests for each action.
-
When the identity authorization is removed, the connector will use the DELETE method to deactivate or delete the account in the application.
Memority accesses the schema of the directory and is therefore able to provision custom attributes.
Once an Active Directory account is linked to a Memority object, Memority identifies it by its objectGUID. Even if the account is moved or modified locally, Memority can find it and overwrite the local modifications. Before the link exists, Memority finds the matching account with the correlation rule of the application (the Active Directory Provisioning plugin correlates on sAMAccountName).
The correlation key between Memority and an LDAP account is the DN. Even if the LDAP account is moved, Memority can find it with the SEARCH method and overwrite the local modifications.
Active Directory & LDAP authentication prerequisites
To be able to request directory actions, Memority's connector needs to authenticate against the application. The Active Directory & LDAP connector binds to the targeted directory in LDAPS through an IPsec tunnel established between Memority's network and the client's network.
To be able to set the LDAPS binding, Memority must trust the whole certificate chain that generated the directory SSL certificate. So any private root certificate must be added to the dedicated Synchronization service setting groovy.client.rest.http.trustStorePEM to be trusted.
The connector binds with an account that must have administration rights on the accounts to manage. The provisioning account's password should not expire, to avoid any provisioning outage.
|
ID |
Prerequisites |
|---|---|
|
AUTH1 |
An IPsec tunnel must be established between Memority's network and the client's directory network. |
|
AUTH2 |
SSL Root & Intermediate CA certificates must be trusted by Memority when using LDAPS protocol. |
|
AUTH3 |
A provisioning account must be created with a password (the connector binds with the DN and the password of this account). |
|
AUTH4 |
The provisioning account must have domain administrator rights, or at least these rights:
|
|
AUTH5 |
The provisioning account’s password must have an entropy greater than 150 bits and shouldn’t automatically expire to avoid provisioning outage. |
The rights related to groups and inetOrgPerson objects (AUTH4) are only required if you manage those objects. They are not needed for a deployment limited to the scope of the Active Directory Provisioning plugin, which manages user accounts only.
Active Directory configuration prerequisites
The Memority Active Directory connector officially supports Windows Server 2019 and later.
The schema must be readable by the provisioning account to be able to get existing attributes.
|
ID |
Prerequisites |
|---|---|
|
CONF1 |
The Active Directory version should be Windows Server 2019 or later. |
|
CONF2 |
The schema must be readable by the provisioning account. |
|
CONF3 |
The Global Catalog URL is required for a multi-domain forest. |
LDAP Live Synchronization
This section focuses on the live synchronization of an LDAP directory, to keep Memority up to date in “pseudo real time” with the content of the LDAP directory.
Overview
A LIVE_SYNC synchronization task keeps Memority up to date with an LDAP directory. It does not read the whole directory at each run. It asks the LDAP connector for the entries created, changed or deleted since the last run.
Each run works like this:
-
Memority reads the start point of the run: the sync token.
-
The LDAP connector returns the changed entries, the deleted entries, and a new token.
-
Memority processes the changes with the usual situations and reactions.
-
Memority stores the new token. The next run starts from it.
With a very large directory (millions of entries), the usual setup is:
-
Do the initial bulk import outside Memority, from an LDAP snapshot.
-
Then schedule
LIVE_SYNCtasks to import the changes made since the snapshot.
The LIVE_SYNC runs are short because they only process the changes.
Prerequisites
OpenLDAP server
The openLdapAccessLog strategy reads deletions in the OpenLDAP access log. The server must have:
-
The
accesslogoverlay enabled on the synchronized database. -
Logging of delete operations (for example
olcAccessLogOps: writes). -
An access log retention (
olcAccessLogPurge) much longer than the interval between two runs. Also take into account the possible downtime of the task. If a log entry is purged before the next run, the deletion is lost.
The created and changed entries are found with the createTimestamp and modifyTimestamp LDAP operational attributes.
Connector account
The bind account of the connector must be able to:
-
Read the synchronized branch, including the
createTimestampandmodifyTimestampattributes. -
Search the access log database (for example
cn=accesslog), including thereqStart,reqResultandreqDNattributes of theauditDeleteentries.
Connector configuration
Set these properties in the configuration of the LDAP connector of the application:
|
Property |
Required |
Description |
|---|---|---|
|
|
Yes |
Set to |
|
|
Yes |
DN of the access log database, for example |
|
|
No |
LDAP filter added (AND) to the search of deletions in the access log. |
|
|
No |
Branch searched for created and changed entries. Default: |
|
|
No |
LDAP filter added (AND) to the search of created and changed entries. |
Notes:
-
The search of created and changed entries is filtered on the object class of the task.
-
The search of deletions is not filtered on the object class: the access log does not store it. Memority ignores the deletions of entries that it does not know (see section ActiveDirectory & LDAP Provisioning | Deleted entries ).
-
The two searches use one token, taken before the first search. A deletion done between the two searches is not lost.
Other strategies of the connector (modifyTimestamp, sunChangeLog, adDirSync) can also return tokens, but the use case validated for SYNC-989 is OpenLDAP with openLdapAccessLog. Note that the modifyTimestamp strategy alone does not detect deletions.
Task configuration
Synchronization task
Create one LIVE_SYNC synchronization task per LDAP object class (for example one for people, one for groups).
API: POST /{tenant}/api/v1/sync/conf/sync-tasks
{
"id": "ldapPeopleLiveSync",
"taskType": "LIVE_SYNC",
"applicationId": "corporateLdap",
"objectClassId": "inetOrgPerson",
"shadowKind": "ACCOUNT",
"initialSyncToken": {
"type": "STRING",
"value": "20260703120000Z"
},
"bypassIdmReferenceIntegrity": true,
...
}
The other properties of the task (pre-processing, post-processing, activation modes, and so on) work as for the other synchronization tasks.
Initial sync token
initialSyncToken is the start point of the first run only. Later runs use the token of the previous run (see section ActiveDirectory & LDAP Provisioning | Start point of a run ).
|
Field |
Description |
|---|---|
|
|
|
|
|
Text value of the token. Mandatory. |
For the LDAP connector with the openLdapAccessLog strategy:
-
typeisSTRING. -
valueis an LDAP GeneralizedTime in UTC, without fractional seconds:YYYYMMDDHHMMSSZ, for example20260703120000Z.
Set the value to the start time of the LDAP snapshot used for the bulk import. If you are not sure of this time, use an earlier time. Replaying a change is safe: an entry that did not change gives no Memority update. Using a later time is not safe: the changes made in between are lost.
If no initialSyncToken is set, the first run starts from the time of this run. It does not import the changes made before.
Warning: the format of the value is not checked against the connector. A STRING value with a bad format (for example 2026-07-03) is accepted. The first run then fails or misses the changes made since the initial bulk import. Check the value carefully.
Reactions
Live sync uses the same situations and reactions as the other inbound tasks.
Configure the reaction to the DELETED situation: it decides what happens to the identity when its LDAP entry is deleted (for example deactivate or delete the Memority Identity).
Behavior
Start point of a run
A run starts from the token of the latest run with status SUCCESS or PARTIAL that is not a simulation. If there is no such run, it starts from initialSyncToken. Without it, it starts from the time of the run.
|
Run result |
Is the token moved forward? |
Effect on the next run |
|---|---|---|
|
|
Yes |
Starts after this run. |
|
|
Yes |
Starts after this run. |
|
Failed |
No |
Processes the same changes again. |
|
Aborted (write threshold) |
No |
Processes the same changes again. |
|
Canceled |
No |
Processes the same changes again. |
|
Simulation |
No |
Not taken into account. |
When a task is stopped and restarted later, the first run after the restart imports every change made during the stop, as long as the access log still holds the deletions (see section ActiveDirectory & LDAP Provisioning | Deleted entries ).
Created and changed entries
They are processed as in an import: the identity is created or updated, with the mappings and reactions of the task.
Deleted entries
A deleted entry gets the DELETED situation and the reaction configured for it, as a missing entry in a reconciliation.
-
Only the entries already known to Memority and linked to an identity are processed.
-
An entry deleted and then created again with the same identifier between two runs is processed as an update, not as a deletion.
Write thresholds
The write thresholds of the task apply. The disappearThreshold also applies to the deletions found by the live sync. Above the threshold, the run is aborted, no entry is processed as deleted, and the token is not moved.
Known limitations
-
A badly formatted
initialSyncTokenis accepted when the task is saved. The first run then misses the changes made since the bulk import. -
A deletion is lost if its corresponding access log entry is purged before the next successful run.
-
An entry in error in a
PARTIALrun is not retried until it changes again in LDAP. Run a reconciliation to repair it if needed. -
The initial bulk import is not done by Memority, it is an ad-hoc process.