LDAP Server

Follow this procedure to set up LDAP Server as a source system.

Prerequisites

  • You have installed the Cloud Connector in your corporate environment and have done the initial configuration. For more information, see: Cloud Connector (Neo) or Cloud Connector (Cloud Foundry)

  • For tenants running on the infrastructure of SAP Cloud Identity Services: You have a multi-environment subaccount in the Cloud Foundry region that maps the region of your Identity Authentication tenant and it is subscribed to the Cloud Identity Services application. For more information, see Connect to On-Premise Systems in SAP Cloud Identity Infrastructure.

  • You have the credentials of a technical user in the LDAP Server, which is used to call the LDAP Server API to read the users and their attributes.

Context

You can use LDAP Server to read entities from it and provision them to a target system. This scenario supports reading users and groups.

There are two versions of the LDAP Server connector. Both consume the LDAP Server API to read and write users and groups. The versions are handled by the ldap.api.version property as follows:

  • When the value is set to 1 or the property is not defined (typical for systems created before versioning was introduced on May 25, 2023) LDAP Server API version 1 is used. This is the default value of ldap.api.version.

    When using this version of the connector, the entities (users and groups) are read with all attributes.

  • When the value is set to 2 – LDAP Server API version 2 is used.

    Тhis version of the connector comes with improved performance of the read operation for user and group attributes. You are now able to define which user and group attributes to be read. This is possible by adding values to the properties ldap.user.attributes or ldap.group.attributes.

    Via these properties, you are able to add also user and group operational attributes (attributes which the directory organizes for internal use). For more information, refer to the official LDAP server documentation. After the additional values of the properties are set, the default read or proxy read transformations should also be adjusted accordingly.

    For more information on how to update to LDAP Server connector version 2, see Update Connector Version.

Procedure

  1. Add an access control system mapping for the LDAP Server in the Cloud Connector. This is needed to allow the Identity Provisioning service to access the LDAP server as a back-end system on the intranet. For more information, see Configure Access Control (LDAP).
  2. Access the Identity Provisioning UI.
  3. Add LDAP Server as a source system. For more information, see Add New Systems.
  4. Choose the Properties tab to configure the connection settings for your system.

    Mandatory Properties

    Property Name

    Description & Value

    Type

    Enter: LDAP

    ldap.url

    Specify the destination URL. It must be in the following format:

    ldap://<external_host>:<external_port>

    ldap.proxyType

    Enter: OnPremise

    ldap.authentication

    Enter: BasicAuthentication

    ldap.user

    Enter the distinguishedName of the technical LDAP user. This is the user you need to establish the connection and to perform all queries.

    ldap.password

    (Credential) Enter the password for the LDAP technical user.

    ldap.group.path

    Enter the complete path to the node containing the groups in the LDAP tree.

    ldap.user.path

    Enter the complete path to the users in the LDAP tree.

    (Optional)ldap.api.version

    Defines the version of LDAP Server API.

    Possible values:
    • 1 - Indicates that LDAP Server API version 1 is used.

    • 2 - Indicates that LDAP Server API version 2 is used.

    If the property is not defined - LDAP Server API version 1 is used.

    ldap.user.attributes

    Shows which user attributes from the source system to be included in the LDAP read result (and respectively, in the intermediate JSON data). Separate the attributes by comma (,).

    Possible values:

    • LDAP Server version 1 version 1 - Even though you specified the attributes to be included in the LDAP read result, Identity Provisioning will return all attributes from the LDAP server.

    • LDAP Server version 2 - Only the specified attributes will be included in the LDAP server read result.

    ldap.group.attributes

    Shows which group attributes from the source system to be included in the LDAP read result (and respectively, in the intermediate JSON data). Separate the attributes by comma (,).

    Possible values:
    • LDAP Server version 1 - Even though you specified the attributes to be included in the LDAP read result, Identity Provisioning will return all attributes from the LDAP server.

    • LDAP Server version 2 - Only the specified attributes will be included in the LDAP server read result.

    If nothing is set, all attributes are included.

    To learn what additional properties are relevant to this system, see List of Properties. You can use the main search, or filter properties by the Name or System Type columns.

    The LDAP Server source system is created by default with the properties listed below:

    Default LDAP Properties

    ldap.user.attributes=

    ldap.group.attributes=

    ldap.user.object.class= inetOrgPerson

    ldap.group.object.class= groupOfNames

    ldap.group.uniquename.attribute= cn

    ldap.member.uniquename.attribute=uid

    ldap.attribute.group.id=cn

    ldap.attribute.group.member= member

    ldap.attribute.user.id= uid

    ldap.attribute.dn=distinguishedName

    ldap.user.filter=

    ldap.group.filter=

    ldap.page.size= 100

    ldap.attribute.user.mail= mail

    ldap.attribute.user.mobile=mobile

    ldap.attribute.user.givenName= givenName

    ldap.attribute.user.surname= sn

    ldap.attribute.user.groups= memberOf

    ldap.attribute.user.telephoneNumber= telephoneNumber

  5. (Optional) Configure the transformations.

    Transformations are used to map the user attributes from the data model of the source system to the data model of the target system, and the other way around. The Identity Provisioning offers a default transformation for the LDAP Server source system, whose settings are displayed under the Transformations tab after saving its initial configuration.

    You can change the default transformation mapping rules to reflect your current setup of entities in your LDAP server. For more information, see Manage Transformations.

    Currently, the default read transformations of the two connector versions have no differences, so there is no need to update them.

    Before the read transformation, the LDAP Server attributes are represented as arrays (single-element arrays, or multi-value arrays separated by comma (,)). After read transformation (in the intermediate JSON data), the attributes are in SCIM format. For more information, see the official documentation for LDAP Server schema attributes in the Related Information section.

    Default transformation:

    As result of this mapping, this is how the data from LDAP Server looks like before and after the read transformation:

    Transformation Snippet

    (from the user mapping)

    Source JSON Data

    (as read from LDAP Server)

    Intermediate JSON Data

    (as result from the transformation)

  6. Now, add a target system to provision users and groups into it. Choose from: Target Systems

Next Steps

  • Before starting a provisioning job, you can first subscribe for e-mail notifications from the source system you use in your scenario. This way, you will be notified by e-mail about eventual failed entities during the jobs. For more information, see Manage Job Notifications.

  • Start an identity provisioning job. For more information, see Monitor Provisioning Job Logs.