---
title: Creating an inbound rule for a connection through an LDAP gateway
description: You can configure an LDAP filter that specifies which users to provision in PingOne.
component: pingone
page_id: pingone:integrations:p1_create_inbound_provisioning_rule_gateway
canonical_url: https://docs.pingidentity.com/pingone/integrations/p1_create_inbound_provisioning_rule_gateway.html
llms_txt: https://docs.pingidentity.com/pingone/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2025-06-04T00:00:00Z
section_ids:
  before-you-begin: Before you begin
  steps: Steps
  result: Result
  configuring-custom-objectclass-values-for-ldap-inbound-provisioning: Configuring custom objectClass values for LDAP inbound provisioning
  provisioning-capabilities: Provisioning capabilities
  configuring-custom-objectclass-values-for-an-ldap-inbound-rule: Configuring custom objectClass values for an LDAP inbound rule
  default-objectclass-values-by-ldap-type: Default objectClass values by LDAP type
  membership-limitation-for-independent-structural-object-classes: Membership limitation for independent structural object classes
---

# Creating an inbound rule for a connection through an LDAP gateway

You can configure an LDAP filter in an inbound rule that specifies which users to provision.

|   |                                                                                                                                                                                          |
| - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | If an LDAP gateway is deleted, provisioning and authentication policy references should be updated accordingly. Learn more in [Deleting an LDAP gateway](p1_deleting_ldap_gateway.html). |

## Before you begin

Make sure you:

* Create an LDAP gateway connection.

  |   |                                                                                                                                                                                                                                                    |
  | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  |   | The connection must be enabled before you can use it in a rule. Learn more in [Connections](p1_connections_provisioning.html).Not all provisioning connection types support this provisioning. Learn more in [Provisioning](p1_provisioning.html). |

* Have the directory path, LDAP base distinguished name (DN). This specifies the LDAP directory location from where users and groups are synced into PingOne.

## Steps

1. In the PingOne admin console, go to **Integrations > Provisioning**.

2. Click **[icon: plus, set=fa]**and then click **New Rule**.

3. For **Sync Direction**, select **PingOne as Target**.

4. For **Available Connections**, click the **Plus** icon (**[icon: plus, set=fa]**) next to the appropriate LDAP gateway connection to set it as the source and then click **Continue**.

5. In the **Rule Details** panel, enter a **Name** and **Description** for the rule and then click **Next**.

6. In the **Directory Configuration** panel, set directory settings for users and groups:

   * In the **Identify Users and Groups** section, enter one or more objectClass values in the **User objectClasses** and **Group objectClasses** fields. Learn more about objectClass values in [Configuring custom objectClass values for LDAP inbound provisioning](#configuring-custom-objectclass-values-for-ldap-inbound-provisioning).

     * (Optional) To restore vendor defaults, click **Restore defaults** next to either field.

       |   |                                                                                    |
       | - | ---------------------------------------------------------------------------------- |
       |   | LDAP gateway version 4.5.0 or later is required to add or edit objectClass values. |

   * In the **Directory Path (LDAP Base DN)** field, enter the LDAP base DN that specifies the LDAP directory location from where users and groups are synced into PingOne. Learn more in [Distinguished Names](https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ldap/distinguished-names) in the Microsoft LDAP documentation.

   * For **User Relative DN**, enter the relative distinguished name that specifies the location of user accounts in your directory, for example `ou=People`. This value is added to the main directory address base DN to locate users.

     Click **Add Condition** to enter an LDAP filter that specifies the users to provision to PingOne. Learn more about [LDAP filters](https://ldap.com/ldap-filters/) in the LDAP documentation.

   * For **Groups Relative DN**, enter the relative distinguished name that specifies the location of group accounts in your directory, for example `cn=Groups`. This value is added to the main directory address base DN to locate groups.

   * For **Group LDAP Filter**, click **Add Condition** to enter an LDAP filter that specifies the groups to provision to PingOne.

     |   |                                                                 |
     | - | --------------------------------------------------------------- |
     |   | Group LDAP filter requires LDAP Gateway version 4.4.0 or later. |

7. Click **Next**.

8. In the **Attribute Mapping** panel, map attributes between the source and PingOne to ensure users are provisioned correctly.

   * On the **Users** tab:

     * To add an attribute mapping, click **[icon: plus, set=fa]Add** and enter the source and target attributes.

     * To add a new source attribute, enter the attribute name. In the list, select the **ADD:*ADD:\<attribute-name>*** attribute. Map the added attribute to a target attribute.

     * To use the expression builder, click the **Gear** icon ([icon: gear, set=fa]). Learn more in [Using the expression builder](../pingone_expression_language/p1_use_expression_builder.html).

     * To delete a mapping, click **Delete** icon ([icon: trash, set=fa]).

       |   |                                                                      |
       | - | -------------------------------------------------------------------- |
       |   | On the **Groups** tab, the group attribute mappings can't be edited. |

       |   |                                                                                                                                                                                                                      |
       | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
       |   | Group membership updates aren't immediately synced to PingOne. To sync group membership, you must either modify an additional user attribute or initiate a manual synchronization through the PingOne admin console. |

9. Click **Next**.

10. In the **Onboarding Settings** panel, define how users are matched, linked, and managed when onboarding into PingOne:

    * In the **Populations** list, select a population. When users are synced to PingOne, they're added to the specified population.

    * For **Authoritative Identity Provider**, PingOne is automatically set as the authoritative identity provider (IdP).

    * Select the **Set default password for new users** checkbox to specify the default password in PingOne for users synced in from an external identity store as a source.

    * Click **Define Password Logic** to create a complex password using the functions in the expression builder. Learn more in [Using the expression builder](../pingone_expression_language/p1_use_expression_builder.html).

    * Select the **Force password reset on first sign on** checkbox to force users to reset their password the first time they authenticate through PingOne.

    * In the **MFA Device Management** list, select one of the following to control how the provisioner can impact multi-factor authentication (MFA) devices that are managed by a PingOne service, such as PingOne MFA and PingID:

      * **Merge with devices in PingOne** (default): Select this option to add a device from the identity store into a user's existing device in PingOne.

      * **Overwrite devices in PingOne**: Select this option to replace configured user devices in PingOne from the identity store. Only new devices mapped under attribute mappings are added.

      * **Do not manage devices**: Select this option to disable device management. This option is recommended for users using PingID in the same environment. Inbound provisioning and PingID use the same device nicknames and cause device unpairing, which this option helps avoid.

11. To enable the rule, click the toggle at the top of the details panel to the right (blue).

    |   |                                                                     |
    | - | ------------------------------------------------------------------- |
    |   | You can disable the rule by clicking the toggle to the left (gray). |

## Result

The **Sync Status** appears and the rule is listed under **Rules**. Learn more in [Sync status](p1_provisioning_sync_status.html).

## Configuring custom objectClass values for LDAP inbound provisioning

You can configure custom objectClass values to control which LDAP entries are included in an inbound provisioning sync. By specifying custom objectClass values in a provisioning rule, you can override the default LDAP filters and sync entries that use non-standard or structural objectClass schemas. Custom objectClass values are supported only for inbound provisioning.

|   |                                                                                                                                                                                                                          |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | LDAP gateway version 4.5.0 or later is required to add or edit objectClass values. On older gateway versions, the fields are read-only and a warning banner is displayed. Provisioning continues using the saved values. |

### Provisioning capabilities

The custom objectClass provisioning capabilities are listed in the following table:

| Resource       | Feature                   | Description                                                                   |
| -------------- | ------------------------- | ----------------------------------------------------------------------------- |
| User           | Custom ObjectClass filter | Overrides the default user objectClass filter with one or more custom values  |
| Group          | Custom ObjectClass filter | Overrides the default group objectClass filter with one or more custom values |
| User and Group | Restore defaults          | Resets to LDAP vendor defaults based on the connection's LDAP type            |

### Configuring custom objectClass values for an LDAP inbound rule

If your LDAP directory uses a different schema than the LDAP vendor default, configure custom objectClass values, such as a custom structural objectClass like `nraPerson` or `employeePerson`.

### Default objectClass values by LDAP type

If you don't configure custom objectClass values, PingOne uses the following defaults based on the source connection's LDAP type:

| LDAP type                | Default user objectClass | Default group objectClass                                       |
| ------------------------ | ------------------------ | --------------------------------------------------------------- |
| Active Directory         | `user`                   | `group`                                                         |
| PingDirectory            | `inetOrgPerson`          | `groupOfNames`, `groupOfUniqueNames`, `groupOfEntries`          |
| Other (Generic/OpenLDAP) | `inetOrgPerson`, `user`  | `groupOfNames`, `groupOfUniqueNames`, `groupOfEntries`, `group` |

### Membership limitation for independent structural object classes

PingOne doesn't synchronize group membership for entries whose structural objectClass is defined directly under `top`, the root class from which all LDAP object classes inherit. This means the entry doesn't inherit from the directory's standard user or group classes. This is a limitation of the directory server, not PingOne. The directory computes membership only for classes it recognizes as groups:

* PingDirectory: `groupOfNames`, `groupOfUniqueNames`, or `groupOfEntries`

* Active Directory: standard group classes

The same behavior has been observed with Radiant Logic and OpenLDAP. Custom classes that inherit from the directory's recognized group classes sync membership normally. Auxiliary classes aren't affected.
