Search Results :

×

LDAP Attribute Mapping

Attribute Mapping lets you map user data from an LDAP server to Drupal user attributes. You can configure fields such as email, username, and custom attributes. The module supports Drupal 8, 9, 10, and 11.

  • Download the module:

    composer require 'drupal/ldap_auth'

  • Navigate to Extend menu on your Drupal admin console and search for miniOrange Active Directory / LDAP Integration using the search box.
  • Enable the module by checking the checkbox and click on the Install button.
  • You can configure the module at:

    {BaseURL}/admin/config/people/ldap_auth/ldap_config

  • Install the module:

    drush en ldap_auth

  • Clear the cache:

    drush cr

  • You can configure the module at:

    {BaseURL}/admin/config/people/ldap_auth/ldap_config

  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the miniOrange Active Directory / LDAP Integration module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on install button.
  • You can configure the module at:

    {BaseURL}/admin/config/people/ldap_auth/ldap_config

Basic attribute mapping allows you to map the email and the username attributes present in Drupal with the user information stored in your LDAP server.

Note and Contact Us - SSO between two WordPress sites

Note:Mapping the Email attribute is mandatory for LDAP Login to work.


  • After successfully configuring the module, head to the Mappings tab.

    (admin/config/people/ldap_auth/attribute_mapping)

  • In the Mappings tab, click on the Mapping button.
Drupal LDAP - Navigate to Mappings Tab

  • Expand the User and Password Sync section.
Drupal LDAP - Expand User and Password Sync Section

  • Under the Email Attribute, select the LDAP attribute name that contains your user's email address from the dropdown.
Drupal LDAP - Select Email Attribute

Custom attribute mapping allows you to map both standard and custom Drupal user fields with corresponding attributes from your LDAP server. Follow the steps below to configure the mapping.

  • Choose the LDAP Attribute Name from the dropdown and select the corresponding Drupal Field Machine Name which you want to map.
  • Click on the Add row button if you want to perform more than one mapping. And then click on the Save Attribute Mapping button to save your changes.
Drupal LDAP - Custom Attribute Mapping

  • Navigate to the Configuration tab, under the People section, select Account Settings.

    (admin/config/people/accounts)

Drupal LDAP - Navigate to Account Settings

  • Go to the Manage fields Tab and click the + Create a new field button.
Drupal LDAP - Click on Create a New Field Button

  • In the Add field section, select the field type.
  • Click on the Continue button.
Drupal LDAP - Select Plain Text Field Type

  • In the next window, enter the label into the Label ​​​​​​textfield and select Text (plain).
  • Click on the Continue button.
Drupal LDAP - Enter Label for the New Field

  • In the settings, scroll down and click on the Save settings button.
Drupal LDAP - Click on Save Settings Button

  • You can use the Machine name generated here, in the Drupal attribute Machine name at the time of custom attribute mapping.
Drupal LDAP - Field Created for Attribute Mapping

  • Open a private window or a new browser and visit the Drupal site's login page (/user/login).
  • Log in using your LDAP credentials.
  • After a successful login:
    • Your Drupal username will be mapped with your LDAP given name.
    • Your last_name in Drupal will be mapped with your LDAP common name (cn).
  • Navigate to the People tab.
  • Under the List section, click on the Edit button.
  • Scroll down to the Custom Fields section to view the mapped attributes.
Drupal LDAP - How Attribute Mapping Works


That's it. You have successfully configured the LDAP attribute mapping.


 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!


ADFS_sso ×
Hello there!

Need Help? We are right here!

support