LDAP connector
This page describes how to configure the LDAP connector which can be used with Active Directory and LDAP
The LDAP connector can be used with any directory which supports the LDAP and LDAPS protocols, such as OpenLDAP, Active Directory, or eDirectory. It provides full user and group lifecycle management against the directory.
Create / update user
✅
Delete user
✅
Suspend / resume user
✅
Reset password
✅
Search / synchronize users
✅
Group management and membership
✅ (configurable — see connector settings)
Test connection
✅
Use cases
Full user and group lifecycle against OpenLDAP, eDirectory, or any LDAP v3 directory.
Importing directory users and groups into OpenIAM via synchronization.
For Active Directory on Windows, also consider the Active Directory PowerShell connector — the LDAP connector works with AD over LDAP/LDAPS, while the PowerShell connector offers Windows-native capabilities.
Versions and compatibility
The end application is any LDAP v3 directory. The connector speaks the protocol through the JDK's own JNDI provider rather than a vendor library, so it has no version range of its own and nothing in it is tied to a particular server build.
Directories
Any that implements LDAP v3 — OpenLDAP, Active Directory, eDirectory and others
Protocols
LDAP on port 389, LDAPS on port 636
Active Directory
Works over LDAP and LDAPS. For Windows-native operations, use the Active Directory PowerShell connector instead
Prerequisites
A directory service account (bind DN) with rights to manage the target subtrees.
Network access from the connector host to the directory on port 389 (LDAP) or 636 (LDAPS).
For LDAPS: the CA certificate of the directory imported into the connector JVM's truststore (see Troubleshooting).
Installing the connector
The steps below describe how to install and start the connector, varying by deployment type.
RPM
First, download ldap-connector-rabbitmq.jar for your platform version from the release download area, place it in /usr/local/openiam/connectors/bin, and change the owner to the OpenIAM user:
Next, create a new .sh file for starting the LDAP connector:
Content of the file:
Make the file executable and start the connector:
Kubernetes
Enable the connector in your deployment configuration; no separate installation is required.
Starting, stopping, and restarting
RPM (script)
Start with ./ldap_start.sh; stop by killing the ldap-connector-rabbitmq java process; restart = stop + start.
RPM (systemd)
systemctl start|stop|restart openiam-connector@ldap-connector-rabbitmq
Kubernetes
kubectl rollout restart the connector deployment.
Command-line parameters and properties
The connector is a Spring Boot application. Its defaults ship inside the jar, and you override them in either of two places:
An external property file, read at
${confpath}/conf/properties/ldap-connector-rabbitmq.properties. The file is optional — the connector starts without it — andconfpathis itself a system property, set with-Dconfpath=/data/openiam/.Directly on the command line, as
-Darguments. Anything in the table below can be set that way, and a-Dvalue wins over the file.
org.openiam.connector.queue
LDAP_Connector_1_Request
The queue the connector consumes. Its base name must match the Connector Queue field on the connector record, which holds LDAP_Connector_1 without the suffix.
org.openiam.connector.queueResponseName
LDAP_Connector_1_Response
Where the connector publishes its replies.
ldap.groupMembershipEnabled
true
When false, the connector skips reading/writing group membership during operations — useful when memberships are managed elsewhere or slow down large syncs.
ldap.supervisorMembershipEnabled
true
When false, skips supervisor (manager) relationship processing.
ldap.cert.persistent.path
${confpath}/conf/ldap-connector-rabbitmq
Where the connector persists trusted certificates for LDAPS connections.
org.openiam.search.page.size
1000
Page size for LDAP search/synchronization paging.
Verifying the connector is running
In the Webconsole, open the managed system — the Running connector status indicator must be green.
Click Test Connection — it must return success.
In the RabbitMQ management console, confirm the LDAP_Connector_1_Request queue exists and has a consumer, and that LDAP_Connector_1_Response exists alongside it.
Check logs/ldap-connector-rabbitmq.log for startup errors.
Troubleshooting
SSLHandshakeException: PKIX path building failed … unable to find valid certification path on LDAPS (port 636)
The directory's CA certificate is not trusted by the connector JVM
Verify the port is reachable (telnet myldap.example.com 636), then import the CA cert: keytool -noprompt -import -v -trustcacerts -alias ldap_ca$(pwgen -s 13 1) -file /path/to/ca_cert.crt -keystore /usr/local/openiam/jdk/lib/security/cacerts -keypass changeit -storepass changeit — into the JVM that starts the connector — then restart the connector.
Connector never receives messages
Queue-name mismatch
The Connector Queue field on the connector record holds the base name LDAP_Connector_1; the connector appends _Request and _Response itself. A mismatch between that base name and the connector's org.openiam.connector.queue property is what leaves the queue without a consumer.
Group operations missing on the Managed System screen
Optional fields not enabled
Enable the Base DN / Search Base DN checkboxes under Connector Configuration (see Registering).
Group membership not syncing
Wrong member attribute for the schema
posixGroup uses memberUid; groupOfNames uses member — adjust the transformation script and SourceAttributesNames.
Large syncs slow
Membership processing overhead
Consider ldap.groupMembershipEnabled=false / ldap.supervisorMembershipEnabled=false (below) if memberships are managed elsewhere.
See also: general connector troubleshooting and the connector error-code reference.
Registering the connector in OpenIAM
The LDAP connector ships pre-registered. What you choose here is which fields appear on the Managed System screen later.
Navigate to Provisioning → Connectors.
Find the LDAP connector and click Edit.

Connector Queue holds the base name, LDAP_Connector_1. The connector appends _Request and _Response to it for the two RabbitMQ queues it uses, so the value here is deliberately shorter than the queue names you will see in RabbitMQ.
In the left-hand menu, click Connector configuration.

The fields are grouped, and each group shows how many of its fields are selected. Directory & Search and User Objects arrive already configured — two of two and four of four — so a user-only deployment needs nothing here at all.
To manage groups as well, expand Group Objects and select the fields you need.

Base DN for Group
The branch group objects live under, for example ou=groups,dc=ldap,dc=local
Object Primary Key for Group
The attribute that matches a group between OpenIAM and the directory, and must be unique — cn on OpenLDAP
Search Base DN for Group
The branch to search when looking a group up by DN
Search Filter for Group
An optional filter narrowing which groups are returned
Click Save and proceed to the managed system.
Configuring the managed system
OpenIAM has a built-in managed system named OpenLDAP (Provisioning → Managed System), pre-configured and usable as-is. If configuring from scratch, fill in the fields manually.

Provide all required details and verify that Base DN and Search Base DN are present for both Group and User — for example:
Base DN for Group:
ou=groups,dc=ldap,dc=localSearch Base DN for Group:
ou=groups,dc=ldap,dc=local
Attribute mapping and policy map
Map OpenIAM user attributes to directory attributes in the managed system's policy map.
Four scripts ship for LDAP synchronization, and the Groovy Manager lists them at these paths:
sync/user/openLDAP/LdapUserSyncAttributes.groovy
The attributes to read from the directory for a user
sync/user/openLDAP/LdapUserTransformation.groovy
Turns a directory entry into an OpenIAM user
sync/group/openLDAP/LdapGroupSyncAttributes.groovy
The attributes to read for a group
sync/group/openLDAP/LdapGroupTransformationScript.groovy
Turns a directory entry into an OpenIAM group and its membership
The Source attribute names field on a synchronization points at the …SyncAttributes script for that object type, and that script is where you name the attributes to retrieve. The group one ships returning cn, displayName, gidNumber, dn and memberUid.
The extended example below handles both schemas, extracting the uid from each DN for groupOfNames. Note that it predates the 2026 package rename: its org.openiam.idm.srvc.* imports are org.openiam.dto.* from 2026.1.1 onward, so update those against the shipped script before using it.
Reconciliation and synchronization
OpenIAM provides two pre-configured synchronization options for the LDAP connector, both with example transformation scripts:
OpenLDAP User — matches the OpenIAM User ID field against the directory's
uid.OpenLDAP Group — matches the OpenIAM name field against the directory's
cn.
To access them: Webconsole → Provisioning → Synchronization → search for OpenLDAP User or OpenLDAP Group. Verify each configuration and update details as needed.
Last updated
Was this helpful?