Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Operation
Supported

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.

Property
Value

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

Because the connector is not written against a specific directory, what it can do against yours is decided by that directory's own schema and the rights of the bind account — not by the connector. An attribute the page shows in an example is only writable if your schema allows it.

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

Deployment
Commands

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.

After importing a certificate into the JVM truststore, you must restart the connector for it to take effect.

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 — and confpath is itself a system property, set with -Dconfpath=/data/openiam/.

  • Directly on the command line, as -D arguments. Anything in the table below can be set that way, and a -D value wins over the file.

Property
Default
Purpose

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

1

In the Webconsole, open the managed system — the Running connector status indicator must be green.

2

Click Test Connection — it must return success.

3

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.

4

Check logs/ldap-connector-rabbitmq.log for startup errors.

Troubleshooting

Symptom
Likely cause
Resolution

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.

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.

  1. Navigate to Provisioning → Connectors.

  2. Find the LDAP connector and click Edit.

The Provisioning Connector screen for LDAP CONNECTOR, with Metadata Type set to LDAP Connector, Connector Queue reading LDAP_Connector_1 and Activate Urgent Queue switched off

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.

  1. In the left-hand menu, click Connector configuration.

The Connector configuration screen for the LDAP connector, showing six of twenty-five fields configured across five groups: Connection, Operation Handlers, Directory and Search, User Objects and Group Objects

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.

  1. To manage groups as well, expand Group Objects and select the fields you need.

The Group Objects group expanded, listing its four fields: Base DN for Group, Object Primary Key for Group, Search Base DN for Group and Search Filter for Group, none selected
Field
What it is for

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

  1. 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.

The LDAP Managed System form, with LDAP CONNECTOR selected, ldap:// on port 389, uid as the object primary key, a SUBTREE_SCOPE search and the shipped attribute list including MEMBER_FIELD_NAME and PASSWORD_FIELD_NAME

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=local

  • Search 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:

Script
Purpose

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:

  1. OpenLDAP User — matches the OpenIAM User ID field against the directory's uid.

  2. 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?