Create Users in LDAP Server
The Drupal LDAP/Active Directory Login module simplifies user management by automatically creating
LDAP/Active Directory whenever user accounts register on your Drupal site. Additionally, it allows
you to map the user attributes from Drupal to LDAP/Active Directory attributes and ensures both
systems have consistent and accurate user information. In this guide, we will walk you through the
process of configuring the module to create users on the LDAP server.
The LDAP/Active Directory login module creates users on the LDAP server whenever a user is created in
Drupal using any of the following events:
- Admin Interface:- When administrators or privileged users manually create a
user’s account via the Drupal admin interface.
- User Registration:- Whenever a new user is registered from the register/login
page (user/register) or any other custom form of the Drupal site.
- 3rd Party Modules:- Whenever a user is created or imported on the Drupal site
using any third-party modules/applications.
Prerequisites:
- Install the Drupal Active
Directory LDAP/ Integration module.
- Configure the module with your LDAP or Active Directory server. You can also refer to this setup
guide for assistance.
Configure LDAP provisioning:
- After successfully installing and configuring the module with the LDAP
server, navigate to the LDAP Provisioning tab
(admin/config/people/ldap_auth/user_sync) of the module and scroll to the User &
Password Sync section.
- Enable the Create users in Active Directory/LDAP Server when a user is created in the Drupal
checkbox.
- In the “LDAP Attribute for User base DN” text field, enter the LDAP Attribute name which
is unique for all the users (This attribute will used to define the user’s Distinguished
Name(DN) in the LDAP server). For an Active Directory, the default value is “cn”, and for
OpenLDAP, it is “uid”.
- Scroll down and click on the Save Configuration button.
Let’s see how it works:
Let's see how the user is created and provisioned via the admin portal.
- Login to your Drupal site using the admin credentials.
- Navigate to the People section of the Drupal site (admin/people).
- Click on the Add User button to create a new user, fill in the required information, and
click on the Create New Account button.
- That’s it!! The user is successfully created in Drupal as well as in your LDAP server. You can
confirm it from your configured LDAP server.
We hope that you found this guide useful and easy to setup.
Support:
If you want a 7-day fully-featured trial or have any questions or in case you need any
sort of assistance in setting up the module according to your use case, please feel free to drop us
an email at drupalsupport@xecurify.com.