Microsoft Active Directory

Follow this procedure to set up Microsoft Active Directory as a proxy 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)

  • You have the credentials of a technical user in the Microsoft Active Directory, which is used to call the Microsoft Active Directory API to read and write users, groups and their attributes.

Context

You can use Microsoft Active Directory as a proxy connector to execute hybrid scenarios. That means, it can provision its entities to another (external) back-end system by request, and then can continue executing CRUD operations back to Microsoft Active Directory, whenever the external back-end requests such.

This scenario supports provisioning users, groups and group assignments.

There are two versions of the Microsoft AD 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 June 19, 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.

    In this version, the group members attribute mapping in the proxy read transformation does not include type sub-attribute. In this case, all members are considered of type User, which is the sub-attribute fallback value. As a consequence, if the external system includes nested groups, they will not be handled properly.

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

    Тhis version of the connector is 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.

    In this version, the group members attribute mapping in the proxy read transformation is enhanced with type sub-attribute. The sub-attribute has two possible values – User and Group. This allows you to read and preserve nested groups.

    For more information on how to update to Microsoft Active Directory version 2, see Update Connector Version.

Procedure

  1. Open Cloud Connector to add an access control system mapping for Microsoft Active Directory. This is needed to allow the Identity Provisioning service to access Microsoft Active Directory as a back-end system on the intranet. To learn how, see: Configure Access Control (LDAP)
  2. Open your subaccount in SAP BTP cockpit (valid for OAuth authentication to the Identity Provisioning proxy system).
  3. Create a technical user with the necessary authorizations. It will later be used by the external consumer to connect to Identity Provisioning.
    • For Certificate-based authentication, follow the procedure in Manage Certificates for Inbound Connection → SAP BTP, Neo Environment

    • For OAuth authentication, proceed as follows:

      1. Go to Start of the navigation pathSecurity Next navigation step OAuth Next navigation step ClientsEnd of the navigation path and choose Register New Client.

      2. From the Subscription combo box, select <provider_subaccount>/ipsproxy.

      3. From the Authorization Grant combo box, select Client Credentials.

      4. In the Secret field, enter a password (client secret) and remember it. You will need it later, for the repository configuration in the external system.

      5. Copy/paste and save (in a notepad) the generated Client ID. You will need it later, too.

      6. From the left-side navigation, choose Start of the navigation pathSubscriptions Next navigation step Java Applications Next navigation step ipsproxyEnd of the navigation path .

      7. From the left-side navigation, choose Start of the navigation pathRoles Next navigation step IPS_PROXY_USEREnd of the navigation path.

      8. Choose Assign and enter oauth_client_<client_ID>.

        For <client_ID>, enter the one you have saved in the previous main step.

  4. Access the Identity Provisioning UI.
  5. Add Microsoft Active Directory as a proxy system. For more information, see Add New Systems.
  6. Choose the Properties tab to configure the connection settings for your system.

    Mandatory Properties

    Property Name

    Description & Value

    Type

    Enter: LDAP

    ldap.url

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

    ldap://<ext_host>:<ext_port>

    ldap.proxyType

    Enter: OnPremise

    ldap.authentication

    Enter: BasicAuthentication

    ldap.user

    Enter the distinguishedName or the userPrincipalName of the Microsoft AD technical user. This is the user you need to establish the connection and to perform all queries.

    ldap.password

    (Credential) Enter the password for the Microsoft AD technical user.

    ldap.attribute.user.id

    Default property, which denotes the ID of a user.

    By default, it's set to: cn

    ldap.attribute.group.id

    Default property, which denotes the ID of a group.

    By default, it's set to: cn

    ldap.attribute.dn

    Default property, which denotes the distinguished name of a user or a group.

    Only possible value: distinguishedName

    ldap.respond.with.resource.after.create

    Default property, whose value is true.

    ldap.respond.with.resource.after.update

    Default property, whose value is true.

    ldap.group.path

    Enter the complete path to the node containing the groups in Microsoft Active Directory.

    ldap.user.path

    Enter the complete path to the users in Microsoft Active Directory.

    (Optional)ldap.api.version

    Handles the version of the LDAP Server connector.

    Possible values:

    • 1 - Indicates that Microsoft AD API version 1 is used.

    • 2 - Indicates that Microsoft AD API version 2 is used.

    Default value: 1

    (Optional) ldap.group.filter

    You can optimize the search to return only particular groups.

    To enter correct group filters, stick to the standard LDAP specification. See: LDAP Representation of Filters – ExamplesInformation published on non-SAP site.

    For example:

    Value (cn=mar*) will return only groups whose CN starts with "mar" (such as marked, March, or Marketing).

    By default, this filter is empty. That is, if the property is not specified, the filter will search for every group.

    Example for a destination or a set of properties:

    Type=LDAP

    Name=MyADDestination

    ldap.user=john.smith@some.dummy.domain.com

    ldap.password=********

    ldap.attribute.user.id=cn

    ldap.attribute.group.id=cn

    ldap.attribute.dn=distinguishedName

    ldap.url=ldap://abcd:123

    ldap.proxyType=OnPremise

    ldap.authentication=BasicAuthentication

    ldap.group.path=OU=Groups,OU=IAS,DC=global,DC=corp,DC=mycompany

    ldap.user.path=OU=Users,OU=IAS,DC=global,DC=corp,DC=mycompany

    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.

  7. (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 Microsoft Active Directory proxy 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 Microsoft AD. For more information, see:

    Manage Transformations

    Default read and write transformations:

    Default read and write transformations for Microsoft AD connector version 1:

    Read Transformation

    Write Transformation

    Default read transformation for Microsoft AD connector version 2:

    Read Transformation

    Write Transformation

  8. Connect the external consumer to Identity Provisioning with the technical user you have created in step 2.

    If the external consumer system is SAP Identity Management, you can export the newly created proxy system as a SCIM repository from Identity Provisioning and import it in SAP Identity Management. This will create a SCIM repository in SAP Identity Management where most of the repository constants will be automatically filled in. You need to provide the technical user credentials that you have set up in step 2 and the SCIM assignment method as described below:

    • For AUTH_USER and AUTH_PASSWORD, enter your client ID and secret.

    • For the SCIM_ASSIGNMENT_METHOD constant, make sure the value is PUT.

Next Steps

When a proxy system is connected to an external backend system (in the case of SAP Identity Management this means the exported CSV file is imported into the Identity Management Admin UI and a repository is configured), you can start managing the users and groups into this external system. Usually, the first operation is the initial load of the existing entities into your external system. When this load has finished, changes in the external system, such as creating new users or updating existing ones, can trigger CRUD requests back to the proxy system.

To see an example with SAP Identity Management, see Hybrid Scenario: SAP Identity Management → sections Next Steps and Future Identity Lifecycle.