Active Directory Connector (LDAP)

Last modified 07 Mar 2024 09:29 +01:00

Connector for Active Directory servers based on the LDAP protocol.

Functionalitystable
Development statusactive (actively developed and maintained)
Support statussupported
OriginEvolveum
Support provided byEvolveum
Target systemsActive Directory servers
ProtocolLDAP/LDAPS
Source codehttps://github.com/Evolveum/connector-ldap

Capabilities and Features

Schema YES Determined from standard LDAP schema, experimental support for native AD schema.

Provisioning

YES

Live Synchronization

YES

Active Directory DirSync synchronization supported.

Password

YES

Activation

YES

Activation using the userAccountControl attribute.

Paging support

YES

Simple Paged Results and VLV

Native attribute names

YES

Use ri:dn instead of icfs:name. Use ri:GUID instead of icfs:uid.

Scripting

NO

Use of dedicated scripting connectors (SSH, PowerHell) is recommended.

Interoperability

Following versions of Active Directory are supported:

  • Active Directory Domain Services (AD DS), Windows Server 2022

  • Active Directory Domain Services (AD DS), Windows Server 2019

Active Directory Lightweight Directory Services (AD LDS) or any other variants of Active Directory or related services are NOT supported.

The connector supports only a subset of the operations that are available by using LDAP protocol and at the same time are documented in public Microsoft documentation. The connector does not claim to support all AD operations and complete AD functionality. Basic provisioning functionality is supported and it is tested in numerous real-world deployments. But advanced functionality may not be supported at all. Active Directory is a complex, proprietary and heavily non-standard system. It is not possible for the connector to support all the available operations. We recommend conducting a feasibility testing before deploying this connector. In case some connector functionality is missing then we recommend to purchase midPoint platform subscription to cover the functionality gap.

Unsupported Active Directory Versions

Following Active Directory versions (including their variants) are no longer supported, as they are not covered by regular (mainstream) support from Microsoft:

  • Active Directory 2016

  • Active Directory 2012, including 2012R2

  • Active Directory 2008, including 2008R2

Known Limitations

  • Synchronization based on modifyTimestamp has a simplistic implementation. It does not support SPR, VLV or referral-following functionality. This synchronization method is inherently inefficient and unreliable. It should be used only as a last resort, if no other method is available. Active Directory DirSync method should be preferred whenever available.

  • Minimal fetch strategy does not work reliably. LDAP has no way to specify that the connector wants to fetch all regular attributes except for one. Therefore, the connector has to list all the other attributes of an object, except the one expensive attribute (such as jpegPhoto or member). However, Active Directory has attributes that cannot be used it a regular (subtree) search. If the list of attributes happen to contain such an "unsearchable" attribute, the request fails. Even worse, AD is not exposing information about search limitations in standard LDAP schema. Therefore, this LDAP-based connector has no way to find out which attributes are not searchable.

    A symptom of this problem is usually an error: 00002120: SvcErr: DSID-…​…​., problem 5012 a.k.a. ERROR_DS_NON_BASE_SEARCH.

    Possible solution is to use non-standard schema definition data structures which are native to Active Directory. However, this code is not production-ready yet.

  • LDAP connector 3.4 introduced a fail-over mechanism for LDAP servers. However, this mechanism is designed for standard-compliant LDAP server (which AD is not), and it was not tested with Active Directory. Therefore, the fail-over mechanism is not supported for Active Directory.

MS Exchange Interoperability

Technically, this connector can be used to provision Microsoft Exchange servers in an indirect way by using PowerShell scripts.

Firstly, the Exchange attributes are accessible in Active Directory when the Exchange software is installed. The AD/LDAP connector dynamically discovers AD schema and therefore it will discover presence of these attributes. Then these attributes can be manipulated in a normal way. Please note that some Exchange attributes may not be properly propagated in the AD LDAP schema. In such case there is a workaround to specify these attributes in the operationalAttributes connector configuration property.

Secondly, since version 1.4.2.18 the connector had support to execute commands and powershell scripts remotely using the WinRM interface. This feature can be used to manage Exchange mailboxes and additional settings. This feature was later "separated" to a dedicated PowerShell scripting connector. Please see Powershell Support in AD/LDAP Connector page for more details.

However, support for MS Exchange is not included in the "bundled" support for this connector (see below).

History

Version Origin Binary Sources Build Date ConnId Framework Bundled with midPoint Description

1.4.2.0

Evolveum

download jar

GitHub

December 2015

Official release (experimental)

1.4.2.14

Evolveum

download jar

GitHub

April 2016

Official release (stable)

1.4.2.15

Evolveum

download jar

GitHub

April 2016

1.4.2.18

Evolveum

download jar

GitHub

September 2016

3.4.1

Powershell support. Bundled with midPoint 3.4.1.

1.4.2.19

Evolveum

download jar

GitHub

October 2016

1.4.2.18

Improved handling od DNs in AD multi-domain environment. MID-2926

1.4.3

Evolveum

download jar

GitHub

December 2016

1.4.2.18

3.5

1.4.4

Evolveum

download jar

GitHub

April 2017

1.4.2.18

3.5.1

CredSSP and Powershell and Exchange support.

1.4.5

Evolveum

download jar

GitHub

3rd July 2017

1.4.2.18

3.6

Powershell improvements.

1.5

Evolveum

download jar

GitHub

4th October 2017

1.4.2.18

3.6.1

Powerhell support. Alternative objectclass detection. Logging improvements.

1.5.1

Evolveum

download jar

GitHub

11th December 2017

1.4.2.18

3.7

Powerhell fixes.

1.6

Evolveum

download jar

GitHub

4th May 2018

1.4.2.18

3.8

Support for CredSSP version 5 and 6 (CVE-2018-0886)

1.6.1

Evolveum

download jar

GitHub

17th April 2018

1.4.2.18

TBD

Fix of security vulnerability: missing check of certificate validity.

2.0

Evolveum

download jar

GitHub

7th November 2018

1.5.0.0

3.9

Native timestamp support.
Support for delta-based updates.
Textual representation of SID.
RunAs support that allows password changes using user’s own identity.
Additional search filter support.

2.1

Evolveum

download jar

GitHub

17th April 2019

1.5.0.0

none

Fix of security vulnerability: missing check of certificate validity.

2.2

Evolveum

download jar

GitHub

31st May 2019

1.5.0.0

none

Upgrade of Apache Directory API (may fix some connection issues)
Fixed binary encoding of unicodePwd (MID-5242)
Support for substring filter anchors (MID-5383)
Fixing localization of configuration properties

2.3

Evolveum

download jar

GitHub

13th August 2019

1.5.0.0

4.0

Upgrade of Apache Directory API
Experimental support for native AD schema
Experimental support for objectCategory searches and automatic management of objectCategory
Improved support for UserAccountContol (contributed)
Support for defaultSearchScope

2.4

Evolveum

download jar

GitHub

22th November 2019

1.5.0.0

TBD

Upgrade of Apache Directory API
Support for "tree delete" control.

3.0

Evolveum

download jar

GitHub

3rd April 2020

1.5.0.0

4.1

Separated PowerShell to a dedicated PowerShell Connector.
Improved DirSync error handling.
Fixed handling of timestamps (fractions of second)
Implemented baseContextToSynchronize.
Java 11 support (no Java 8 support any more).

3.1

Evolveum

download jar

GitHub

20th October 2020

1.5.0.0

4.2

Additional filter fixes at several places.
Improved VLV detection.
Proper SPR "abandon".
Improved error handling.
Improved support for boolean attributes.
Misc minor fixes.

3.2

Evolveum

download jar

GitHub

31st March 2020

1.5.0.0

4.3

Optional unbind before disconnect
Improved connection handling (connection reuse, reconnects)
Upgraded Directory API to Evolveum version 2.0.1e1, which fixes file descriptor leak
includeObjectClassFilter set to true by default
Support for AD 2019

3.3

Evolveum

download jar

GitHub

8th October 2021

1.5.0.0

4.4

Fixed problem with excessive abandons
Several fixes and improvements related to timeouts and unbind operations
Support for TCP keepalive
Connection logging (terse format)
Smarter handling of root DSE fetches
Finer-grained timeouts
Root DSE fetch option for checkAlive

3.3.1

Evolveum

download jar

GitHub

22nd December 2021

1.5.0.0

N/A

Fixing AD "range" mechanism (used for large AD groups)

3.4

Evolveum

download jar

GitHub

25th March 2022

1.5.0.0

4.5

AD dirsync fix (MID-6922). Improved error messages. Minor bugfixes.

3.5

Evolveum

download jar

GitHub

10th October 2022

1.5.1.3

4.6

Added support for configuration discovery. Various AD fixes around userParameters and flags.

3.6

Evolveum

download jar

GitHub

21st March 2023

1.5.1.3

LDAP integer syntax is mapped to BigInteger, supporting large numbers (MID-4424)

3.6.1

Evolveum

download jar

GitHub

27th March 2023

1.5.1.3

4.7

Synchronized bundle release with LDAP connector.

3.7

Evolveum

download jar

GitHub

10th October 2023

1.5.1.3

4.8

Fixing of repeated adding of removed UAC attributes.

3.7.1

Evolveum

download jar

GitHub

10th January 2024

1.5.1.3

4.8.1, 4.9

Fixing of default value for 'connectTimeout', 'writeOperationTimeout', 'readOperationTimeout', 'closeTimeout' and 'sendTimeout' configuration attributes.

fixes handling of ENABLE attribute

This connector is based on the LDAP Connector which was completely rewritten from scratch during 2015-2016.

Support

This connector is bundled with midPoint distribution. Support for LDAP connector is included in standard midPoint support service (a.k.a bundled support) - however, there are limitations:

  • Only some Active Directory versions are supported (see above)

  • Only some Active Directory features are supported (see above). The connector does not claim to be feature-complete. We recommend conducting a feasibility testing before deploying this connector. In case some connector functionality is missing then we recommend to purchase midPoint platform subscription to cover the functionality gap.

  • PowerShell scripting implemented in this connector is supposed to be used to supplement creation of Active Directory (windows) accounts by using simple scripts. It is not supposed to be used to manage Microsoft Exchange accounts. Management of Exchange accounts can be quite a complex matter, requiring complicated PowerShell scripts. Support for the use of this connector to manage Exchange accounts has to be purchased separately.

There may be exception to this rule for the customers that purchased support before the release of midPoint 4.0. In case of any doubts please contact Evolveum sales representatives.

When dealing with connector issues, please make sure to follow LDAP Connector Troubleshooting Guide.

Licensing

The connector itself is available under the terms of Apache License 2.0. The connector is using only the LDAP protocol to access Active Directory. We are not using any Microsoft library or any other component that might be subject to Microsoft licensing. To our best knowledge no extra license is needed to use the connector with Active Directory. However the Microsoft license texts are not entirely clear and we are not lawyers. Therefore it is recommended for each user to make his own analysis of the licensing issues. Please use your Microsoft support program and contact Microsoft with the licensing question when in doubt.

Notes

This connector is contained in LDAP connector bundle, which also contains LDAP connector. Both connectors are specializations of the LDAP connectors. The Active Directory connector has additional support for the LDAP quirks needed to work with AD.

ConnId Result Handlers

We strongly recommend to disable all the handlers when working with well-designed connectors in general and when working with our LDAP or AD/LDAP connectors in particular.

Those "result handlers" are an artifact of an original original Identity Connector Framework over-engineering. The handlers are supposed to assist connectors by implementing "mechanism" that the connector or resource does not support - such as search result filtering, data normalization and so on. However, those handler are generic and they know nothing about the particulars of the resource that the connector connects to. Therefore in vast majority of cases those handlers just get into the way and they distort the data. Good connectors usually do not need those handlers at all. Unfortunately, these handler are enabled by default and there is no way for a connector to tell the framework to turn them off. The handlers needs to be explicitly disabled in the resource configuration.

<icfs:resultsHandlerConfiguration>
  <icfs:enableNormalizingResultsHandler>false</icfs:enableNormalizingResultsHandler>
  <icfs:enableFilteredResultsHandler>false</icfs:enableFilteredResultsHandler>
  <icfs:enableAttributesToGetSearchResultsHandler>false</icfs:enableAttributesToGetSearchResultsHandler>
</icfs:resultsHandlerConfiguration>

ObjectClass Filters

Natural way to use LDAP is to use "short" search filters, such as (cn=foo). However, such search filter can match objects of several incompatible objectclasses, producing incorrect results. Therefore a strict way to construct a search filter is to always add an objectclass clause to the filter, resulting in (&(objectclass=inetOrgPerson)(cn=foo)) filter. Use of such search filter ensures that the results will be correct.

This search filter should work flawlessly on standard-compliance and correctly-configured LDAP servers. Therefore since connector version 3.2, use of such search filters is tuned on by default. However, such search filters may cause issues on non-compliant and/or incorrectly configured and populated servers. In such case, the behavior can be controlled by includeObjectClassFilter configuration property.

Was this page helpful?
YES NO
Thanks for your feedback