Drupal 7 OpenLDAP authentication

Drupal 7 OpenLDAP authentication

Drupal 7 OpenLDAP authentication

Web Server Prerequisites:

yum install php-ldap

service httpd restart

Install/Activate the Entity Module:

https://drupal.org/project/entity

Download the LDAP Plugin from the Following:

https://drupal.org/project/ldap

Install/enable the module, and all sub-modules, browse to the module via

Configuration –> LDAP Configuration

Password Security:

Edit the settings to store passwords using Blowfish (the default is no encryption, not every secure)

Drupal LDAP server Connection settings: machine name, Enabled, LDAP Server Type Open LDAP, LDAP server address

Create/Edit the first server settings as follows:

Same screenshot: Drupal LDAP Connection settings with server name, type Open LDAP and server IP

** IMPORTANT ** Initially configure with “service account bind for searches” using the LDAP admin account+passsword and save.

Drupal LDAP User to Drupal User Relationship: Base DN ou=people,dc=mydomain,dc=local, AuthName uid, Email mail

hit add, and now change it to use anonymous search.

Now configure the User-To-Drupal area, add the OU’s that users who are authenticating to the system use, as well as UID and mail for the LDAP attributes

Same screenshot: LDAP User to Drupal User Relationship with base DN, uid and mail attributes

configure a username to test the LDAP database with

Drupal LDAP Testing Drupal Username and DN of testing username cn=user,ou=people,dc=mydomain,dc=local

set the groups settings to be irrelevant for this drupal site

Drupal LDAP Group Configuration: Groups are not relevant to this Drupal site checked

Test, and make sure all is working, if not retry the “service account bind” with a LDAP account, and then set to anonymous once working. You will know if it works, because you will get a list of all info about the test user account.

User Configuration:

Drupal LDAP Allowable Authentications set to Mixed mode

Authentication:

confiugre mixed mode authentication, as well as put a checkbox on the LDAP server you wish to allow authentication from

Same screenshot: Drupal Allowable Authentications Mixed mode and Authentication LDAP Server Configurations

That’s it!

Hosted Linux Servers at www.zwiegnet.com/go

Related guides: WordPress TLS LDAP Configuration | Configure Joomla 3 for TLS LDAP Authentication

Leave a Reply

Your email address will not be published. Required fields are marked *