JIM LDAP Connector¶
The JIM LDAP Connector synchronises identities in both directions with LDAP directory services, from importing existing data to provisioning new accounts and groups.
Capabilities: Full Import, Delta Import, Export, Probe
Supported Directories¶
| Directory | Notes |
|---|---|
| Microsoft Active Directory (AD DS) | Full support, tested every night against Windows Server 2025 domain controllers at the Windows Server 2016 forest functional level: USN-based Delta Import, userAccountControl, FILETIME dates, binary attributes (objectGUID, objectSid), large group membership, the AD Recycle Bin, and password setting and password policy discovery over LDAPS |
| Active Directory Lightweight Directory Services (AD LDS) | Untested. JIM treats an AD LDS instance as Active Directory. Use Full Import and export; do not rely on Delta Import, password setting or domain controller discovery, which are built for a domain and have not been tried against an instance |
| OpenLDAP | Full support including parallel import, accesslog-based delta import, and RFC 4512 schema discovery |
| Samba AD | Full support with Active Directory compatibility |
| 389 Directory Server | Full support, tested against 389 Directory Server 3.1: schema discovery, Full Import, export, changelog Delta Import (deletions and renames included), password setting over LDAPS, and password policy discovery. Identifies objects by entryUUID, imports in parallel with paged results, reads the Retro Changelog plug-in's changelog for Delta Import and its password policy from cn=config (see Password policy discovery); the access to grant is under 389 Directory Server |
| Other RFC 4512-compliant directories | Supported via generic LDAP mode with automatic directory type detection |
JIM detects the directory type from the Root DSE during schema discovery and adjusts its behaviour to suit; there is nothing to configure.
Features¶
Import¶
- Full Import
Reads all objects from selected partitions and object types. - Delta Import
Imports only the changes since each partition's last import; every partition keeps its own watermark.- Active Directory
Uses update sequence number (USN) change tracking, against the domain controller JIM pinned. - OpenLDAP
Uses the accesslog overlay (cn=accesslog). - 389 Directory Server and generic directories
Uses the directory's changelog. - Every directory type
Before querying any change, a Delta Import confirms the account JIM connects as can read where the directory keeps its changes. LDAP Connector Delta Import explains each mechanism, and how a Delta Import fails safe.
- Active Directory
- Parallel imports
Configurable concurrency for OpenLDAP, 389 Directory Server and generic directories, importing several containers and Object Types at once. - Paged results
Automatic RFC 2696 Simple Paged Results support for large directories. - Configurable search timeout
How long to wait for LDAP search results. - Reading values as their attribute's type
Each value is read as its attribute's data type, in the forms How values are read lists. - Values JIM cannot read
A value that does not fit its attribute's type is reported with the entry's distinguished name, never guessed at, as Values JIM could not import describes. - Overlapping Object Types
An entry carrying more than one selected structural class imports as the most specific of them: with bothuserandcomputerselected, an Active Directory computer imports ascomputer, and on an RFC 4512 directory with bothpersonandinetOrgPersonselected, aninetOrgPersonentry imports asinetOrgPerson. Schema discovery records each Object Type's inheritance, so this holds whatever order an entry lists its classes in; Object Types discovered before JIM recorded inheritance use that order until you refresh the schema, so refresh any Connected System with overlapping Object Types selected. Selecting or deselecting an overlapping Object Type therefore changes the Object Type that entries JIM already holds import as; JIM refuses that change by default and keeps the existing objects, as When an object changes Object Type explains.
Export¶
- Create, update, and delete
Operations on directory objects. - Disabling leavers
An export Synchronisation Rule whose Deprovisioning Action is Disable disables the account the way its directory does: theuserAccountControldisable flag on Active Directory and Samba AD,nsAccountLockon 389 Directory Server, and a permanentpwdAccountLockedTimelock on OpenLDAP, which needs the password policy overlay. Other LDAP directories cannot disable an account, so their rules deprovision with Delete or Disconnect. - New Active Directory accounts enabled by their Initial Password
Active Directory refuses to create an enabled user account that has no password. When the provisioning Synchronisation Rule has an Initial Password, JIM creates the account disabled and the password's delivery enables it, so auserAccountControlAttribute Flow that enables accounts keeps working. See Enabling new Active Directory accounts. - Configurable concurrency
Parallel batch export support with 1-64 concurrent LDAP operations; a cancelled export run finishes its current batch. - Batched multi-valued modifications
Large attribute changes (e.g. group membership) are automatically split into configurable batches, within directory server limits. - Distinguished names in any case
A directory treatsDC=CONTOSO,DC=COManddc=contoso,dc=comas one name, reporting a DN in its stored case. JIM compares DNs, references such asmanagerincluded, ignoring case: an export is confirmed whichever case your expression writes, and the directory's case is not drift. Changing only the case of the object's name (cn, say) renames the entry; a case change elsewhere in the DN is not exported. See Identifiers a target reports in its own case. - Values already in place
Adding a value the directory already holds (a member already in the group) or removing one it no longer holds counts as done, and every other change in the same export is still applied. See Values already in place. - Container provisioning
Optionally create organisational units (OUs) on demand when provisioning objects to new locations. - Group placeholder members
Automatic handling of thegroupOfNamesMUST member constraint for OpenLDAP directories. - Exchange recipients
On Active Directory, JIM asks Exchange to make the recipients its export Synchronisation Rules declare; Exchange's own stamps, such ashomeMDB, are read-only. See LDAP Connector Exchange Recipients.
Schema Discovery¶
- Automatic RFC 4512 schema parsing
Object classes and attributes are discovered from the directory's subschema subentry. - Data types from the directory's schema
Each attribute's data type comes from its syntax, and cannot be overridden. Active Directory's Enumeration attributes (omSyntax 10), such assAMAccountTypeandinstanceType, are whole numbers and are discovered as Number attributes. Other directories' INTEGER attributes, such asuidNumber, are Long Number. - Structural and auxiliary class support
On Active Directory, optionally include auxiliary classes in schema discovery; other directories always do. - Auxiliary class merging
Merge an auxiliary class's attributes into a structural Object Type so JIM can import and export them, with JIM composing each entry'sobjectClassitself (Auxiliary Object Classes). - Internal class classification
Classes the directory keeps for its own configuration or operation are marked internal, and the schema screen puts them out of the way (Internal object types). - Operational attributes
On RFC 4512 directories, attributes the directory maintains itself, such ascreateTimestampandpwdFailureTime, are offered unselected and read-only; see Operational Attributes. - Case-exact attributes
Discovered from each attribute's matching rule, or on Active Directory its syntax; see Case-exact attributes. - Partition discovery
Enumerates naming contexts and organisational units. - Hidden partition filtering
Skip Configuration, Schema, and DNS partitions for improved performance.
How values are read¶
| Data type | Read from | Reported, not imported |
|---|---|---|
| Boolean | TRUE or FALSE, in any case |
Anything else, such as yes or 1 |
| Number | A whole number with an optional sign that fits 32 bits | Letters, or a number too large for the type |
| Long Number | A whole number with an optional sign that fits 64 bits | Letters, or a number too large for the type |
| DateTime | GeneralizedTime (minutes, seconds and a fraction optional; no time zone means UTC), UTCTime (years 50 to 99 are 19xx), or ISO 8601 with a time of day |
A date that does not exist, text after the time zone, a date with no time, or a date that can be read two ways (below) |
Guid (Active Directory objectGUID) |
16 bytes | Any other length, given as hexadecimal |
| Text, Reference, Binary | As the directory returns them | Never |
Every value of a multi-valued DateTime attribute is imported to the microsecond, such as each time in OpenLDAP's pwdFailureTime; two values less than a microsecond apart are both reported rather than one kept. A Boolean holding both TRUE and FALSE has each reported. Either way they are listed under Attribute Values Not Imported on the execution item (see Values JIM could not import), and the attribute is left as JIM held it.
A date is exported as GeneralizedTime at its Date resolution: whole seconds, written .0Z, to Active Directory and Samba AD; up to six fractional digits to other directories.
A date of ten or twelve digits with a time zone can be a GeneralizedTime or a UTCTime; JIM reads it as the one giving a year from 1950 to 2049. Where both do, as 200805121430Z does (12 May 2008 14:30, or 5 August 2020 12:14:30), JIM reports the value.
Security and Connectivity¶
- LDAPS (SSL/TLS)
Encrypted communication over port 636 (or custom port). - Certificate validation
Always on for LDAPS: the certificate chain, its validity period, and its name are all checked. Certificates added in Admin > Certificates are trusted alongside the operating system's trust store. - Authentication types
Simple bind or NTLM. For Active Directory, use a Simple bind over LDAPS: NTLM has not been tested against it, and a Windows Server 2025 domain controller refuses NTLM over an unencrypted connection by default. - Automatic retry
Configurable retry with exponential backoff for transient failures.
Detected facts¶
The Connected System's Details tab shows a Detected strip above the form with what JIM has detected about the directory:
| Fact | Shown when |
|---|---|
| Directory Type | Always, once detected (Active Directory, Samba AD, OpenLDAP, 389 Directory Server, or Generic) |
| Vendor | The directory reported one |
| DNS Host Name | The directory reported one |
| Paging | Always, once detected (Supported / Not Supported; Samba AD reports Not Supported) |
| Pinned Directory Server | A domain controller has been pinned |
| Invocation Id | JIM could read the pinned domain controller's invocationId |
| Exchange | The last save with Manage Exchange recipients ticked signed in to Exchange and read its version (Exchange Recipients) |
| Exchange Sign-in | The last save with Manage Exchange recipients ticked signed in to Exchange: the account and the domain controller that issued its Kerberos ticket |
The strip is read-only, and viewing it never opens a connection; Detected facts says where it comes from.
Available to automation via GET /api/v1/synchronisation/connected-systems/{connectedSystemId}/capabilities and Get-JIMConnectedSystemCapability -ConnectedSystemId <id>.
Connection Settings¶
Connectivity¶
| Setting | Description | Default | Example |
|---|---|---|---|
| Host | Hostname or IP address of the directory server. IP address is fastest. | (required) | dc01.corp.local |
| Preferred Domain Controller | Applies to Active Directory and Samba AD. A specific domain controller FQDN to always connect to. The Discover... action beside the field lists the forest's domain controllers (Discovering Domain Controllers). When blank, JIM discovers and pins the domain controller it reaches via Host (Domain Controller Discovery and Pinning). For LDAPS, use a name present in the domain controller's certificate. | (blank; auto-discover) | dc01.corp.local |
| Port | 389 for LDAP, 636 for LDAPS. | 389 |
636 |
| Use Secure Connection (LDAPS)? | Enable LDAPS (SSL/TLS) for encrypted communication. Certificate validation is always applied; see Certificate validation. | false |
true |
| Connection Timeout | Seconds to wait for a connection attempt, including to a server that does not answer at all (behind a firewall that drops traffic, say). Where the host name resolves to several addresses, each address gets this long. | 10 |
30 |
| Global Catalog Server | Applies to Active Directory. The Global Catalog JIM searches when it probes for a value that must be unique across the whole forest (userPrincipalName, servicePrincipalName, mail and proxyAddresses), so a value held in another domain is found. JIM connects on port 3268, or 3269 with LDAPS, with this Connected System's credentials. When blank, JIM uses the domain controller it connects to, if that is a Global Catalog and the forest has more than one domain. For LDAPS, use a name present in the server's certificate. See Forest-wide attributes and the Global Catalog. |
(blank; the connected domain controller in a multi-domain forest) | gc01.corp.local |
Credentials¶
| Setting | Description | Example |
|---|---|---|
| Username | Service account username for connecting to the directory. | corp\svc-jim-ldap (Active Directory), cn=svc-jim,ou=Services,dc=example,dc=com (OpenLDAP) |
| Password | Service account password (stored encrypted). | (encrypted) |
| Authentication Type | Type of authentication: Simple or NTLM. Use Simple for Active Directory; see Security and Connectivity. | Simple |
Import Settings¶
| Setting | Description | Default |
|---|---|---|
| Search Timeout | Maximum seconds to wait for LDAP search results. | 300 (5 minutes) |
| Import Concurrency | Parallel LDAP import connections, one per container and Object Type; not used for Active Directory. | 4 |
Retry Settings¶
| Setting | Description | Default |
|---|---|---|
| Maximum Retries | Maximum retry attempts for transient failures. | 3 |
| Retry Delay (ms) | Initial delay between retries, backing off exponentially. | 1000 |
Schema Discovery¶
| Setting | Description | Default |
|---|---|---|
| Include Auxiliary Classes | Applies to Active Directory. Include auxiliary object classes alongside structural classes during schema discovery; RFC 4512 directories always include them. | false |
Internal object types¶
A directory publishes its own machinery in the same schema as the classes you manage. A stock OpenLDAP returns 67 structural classes, of which 27 belong to the server rather than to your directory: the cn=config backend's olc* classes, the accesslog overlay's audit* classes, and the root DSE class.
On 389 Directory Server 3.1, 78 of the 184 structural classes belong to the server and are marked internal: cn=config, plug-in, replication and changelog classes, Class of Service and role definitions, tombstone and glue entries, and the Netscape console classes.
The Connector marks those Object Types internal. The Schema tab hides them, says how many it is holding back, and offers Show internal object types. Nothing is discarded: every class is still discovered, stored and selectable, and an Object Type you have selected is never hidden.
JIM judges a class by its OID, which its vendor assigns, not its name. 389's arc also carries inetOrgPerson and the user classes 389 recommends (nsPerson, nsAccount, nsOrgPerson, nsMemberOf), so JIM matches an exact list of 389's own classes there. Classes flagged RFC 4512 OBSOLETE are internal too. Standards classes (X.500, COSINE, Internet), inetOrgPerson, those 389 user classes, and your own organisation's extensions never are.
Active Directory needs none of this: the Connector asks it to exclude its own hidden and defunct classes when enumerating them.
Automation sees the same default. Get-JIMConnectedSystemObjectType omits internal Object Types unless you pass -IncludeInternal. The REST API always returns every Object Type, each carrying the classification tags the Connector reported and an isInternal flag derived from them.
Hierarchy¶
| Setting | Description | Default |
|---|---|---|
| Skip Hidden Partitions | Skip Configuration, Schema, and DNS zone partitions when refreshing the hierarchy, for performance. | true |
| Create containers as needed? | Automatically create OUs when provisioning objects to locations that do not yet exist. | false |
A naming context or crossRef partition the service account cannot read (a least-privilege account bound against an OpenLDAP server hosting several suffixes, say) is skipped rather than failing the whole hierarchy import, and named in the Worker log with the LDAP result code, so you can tell which partition to grant access to. The import fails only when every naming context is unreadable.
Export Settings¶
| Setting | Description | Default |
|---|---|---|
| Export Concurrency | Concurrent LDAP operations per export batch (1 to 64); schema import sets 16 (Active Directory, 389 Directory Server) or 8 (OpenLDAP) (Export Performance). | 4 |
| Modify Batch Size | Maximum number of values per multi-valued attribute modification in a single LDAP request. Lower values improve compatibility; higher values improve throughput, especially for very large groups. Recommended range: 100 to 2000. | 1000 |
| Group Placeholder Member DN | Placeholder DN for group classes that require at least one member (groupOfNames, say); filtered out during import. Not used for Active Directory. | cn=placeholder |
| Manage Exchange recipients | Active Directory only. Makes provisioned objects Exchange recipients. | false |
| Exchange server | The Exchange server JIM signs in to. Required while managing recipients. | (blank) |
Troubleshooting¶
Troubleshooting the LDAP Connector covers connection, sign-in, import, Delta Import and export failures, each by the message it shows.
Related¶
- LDAP Connector Delta Import: how each directory type reports its changes, and the checks a Delta Import makes first.
- LDAP Connector Values Already in Use: values already in place, and probing for values already in use.
- LDAP Connector Auxiliary Object Classes: merging auxiliary classes into an Object Type.
- LDAP Connector Operational Attributes: importing the attributes a directory maintains itself.
- LDAP Connector Domain Controllers and Containers: domain controllers, forests, referrals and Container Scope.
- LDAP Connector Certificates: LDAPS and certificate validation.
- LDAP Connector Passwords: setting passwords, and the password policy JIM discovers.
- LDAP Connector Exchange Recipients: provisioning Exchange recipients.
- LDAP Connector Service Account Permissions: the rights the service account needs.