Skip to main content

OpenLDAP

OpenLDAP is an open source LDAP directory server. The OpenLDAP connector syncs accounts (inetOrgPerson entries), groups (groupOfNames entries) and group membership into Owlie. It can also create, update, disable, enable and delete accounts, and add or remove group members. The connector runs only on a private-network gateway inside your network.

For a directory with another schema, build an LDAP connector.

Capabilities​

CapabilitySupportedDetails
SyncYesAccounts and groups, plus group membership.
Incremental syncNoEvery run is a full sync.
Account provisioningYesAccounts: create, update attributes, disable, enable and revoke. By default, revoking disables the account.
Grant writesYesGroup membership (member_of).
NotificationsNo
Custom operationsNo

Authentication​

The connector has one authentication method, Bind DN and password. Owlie binds to the directory as an entry that you create and give access to. The bind password stays on the gateway: Owlie stores only the name of the gateway secret that holds it.

The connection always uses TLS. An ldaps:// URL connects over TLS, and an ldap:// URL upgrades with StartTLS.

Get credentials from OpenLDAP​

  1. Create an entry for Owlie to bind as, for example cn=owlie,ou=services,dc=example,dc=org, and set its password.
  2. Give that entry access in the directory's access control rules. The OpenLDAP access control guide describes them.
  3. On the gateway, store the password as a gateway secret, for example OPENLDAP_BIND, and let the openldap connector resolve it. See private-network gateways.
FeatureAccess the bind entry needs
Sync and connection testRead access to the account and group search bases, including entryUUID.
Account provisioningCreate and delete entries under the first account search base, and write the account attributes and userPassword.
Disable and enableWrite the disable attribute, which is pwdAccountLockedTime by default.
Group membership writesWrite member on the groups Owlie manages.

Connect OpenLDAP in Owlie​

OpenLDAP needs an active gateway before you can install it. The install form's Execution section says "This connector requires a Connector Gateway" and asks you to choose the Gateway.

FieldRequiredWhat to enter
Directory URLYesThe directory's URL, starting with ldaps:// or ldap://, for example ldaps://ldap.example.org:636.
Base DNYesFor example dc=example,dc=org.
CA certificate (PEM)NoYour own certificate authority, when the directory's certificate doesn't chain to a public one.
Verify the directory's certificateNoOn by default. Turn off only for a directory with a self-signed certificate.
Account search basesYesWhere this installation's accounts live, as whole DNs, for example ou=people,dc=example,dc=org.
Group search basesYesWhere this installation's groups live, as whole DNs, for example ou=groups,dc=example,dc=org.
Account object classesYesThe default is inetOrgPerson.
Group object classesYesThe default is groupOfNames.
Disable attributeYesThe attribute that disables an account. The default is pwdAccountLockedTime, the password policy overlay's lock.
Disabled valueYesThe value that marks an account disabled. The default, 000001010000Z, is the overlay's permanent lock.
Enabled valueNoThe value that marks an account enabled. Empty, the default, removes the attribute instead, which is how the overlay's lock is lifted.
Bind DNYesThe DN Owlie binds as.
Bind passwordYesThe name of the gateway secret that holds the bind password, without the OWLIE_SECRET_ prefix.

A custom certificate authority, or turning certificate verification off, also needs the gateway operator's allowTlsOverrides setting for the connector.

The connector checks that the URL starts with ldap:// or ldaps://, that the base DN is set, and that the account and group search bases are set. The connection test binds and reads the first account search base, which checks the bind, TLS and that the base exists.

Entities​

EntityIn OpenLDAPIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
AccountAn inetOrgPerson entry. This is the account entity.entryUUID, or dnuid, mail, cn, givenName, sn, displayName, departmentNumber, ouYesYesYesYesNo
GroupA groupOfNames entry.entryUUID, or dncn, descriptionYesNoNoNomember_of

Owlie reads the disable attribute on every sync and shows an account that carries the disabled value as disabled. By default, Sync matches an account to an identity by mail against the identity's email. Change the matching rule on the account's Sync job. See account matching.

Grant kinds​

Grant kindIn OpenLDAPPrincipal → targetWritableQualifiersPasses access through
member_ofA DN in the group's member attribute.Account → GroupYesNoneYes: a member holds what the group is a member of.

A group's members are the member values that are accounts inside the account search bases. A group inside the group, or an entry outside the account search bases, is not reported.

Provisioning behaviour and limits​

OperationWhat happens in OpenLDAP
ProvisionCreates the entry under the first account search base and sets its password. If setting the password fails, Owlie deletes the new entry.
Update attributesWrites the mapped attributes on the entry.
DisableSets the disable attribute to the disabled value. With the defaults, that sets pwdAccountLockedTime to 000001010000Z.
EnableSets the enabled value, or removes the disable attribute when the enabled value is empty.
RevokeRemoves the account's managed group memberships, then disables the account by default. To delete the entry instead, change the revoke state in the provisioning profile.

The default lock stops the account from binding only when the directory runs the password policy overlay (ppolicy) with a default policy that has pwdLockout: TRUE. On a directory without the overlay, set Disable attribute and its values to an attribute of your own, such as employeeType with active and disabled. That records the state for Owlie and for anything else that reads the attribute, but it does not by itself stop a bind.

The default provisioning profile gives a new account a uid from the part of the identity's email before @, in lowercase. When that uid is taken, Owlie appends 1, 2 and so on. mail, cn, givenName, sn and displayName come from the identity's email and names. Every new account gets a random 24-character password. Change any of these in the resource's provisioning profile.

Limits:

  • The connector doesn't create, change or delete groups.
  • Adding a member a group already has succeeds without a change, and so does removing a member the group no longer has.

Troubleshooting​

The install form says "This connector requires a Connector Gateway". OpenLDAP runs only on a gateway. Set up a private-network gateway, then choose it in the Execution section.

Validation fails with "url must be an ldap:// or ldaps:// URL". Directory URL needs the scheme, for example ldaps://ldap.example.org:636.

Validation fails with "the user search bases are not set" or "the group search bases are not set". Add at least one DN to Account search bases and Group search bases.

A disabled account can still bind. The directory isn't enforcing the lock. Check that the password policy overlay is loaded and that its default policy has pwdLockout: TRUE.

Changelog​

The OpenLDAP connector is at version 1. Owlie shows each connector's changelog with the connector in the catalog.