Drupal 7 LDAP Modules

You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

Breakdown of LDAP Modules and Functionality for Drupal 7

Please try to give feedback on how the ldap modules you are working on can be better served by the LDAP api and other LDAP project modules. Even if your ldap module isn't in the ldap project, please add it below and list the features it has.

LDAP API or Building Block Modules

LDAP Server

  • overall ldap preferences such as require https on credential pages, encryption, detailed ldap logging
  • Server configuration storage and UI (currently ldap_servers)
  • api functions not built into php ldap extension
  • ldap_servers_get_servers() [ldap_authentication, ldap_authorization]
  • ldap_servers_get_user_ldap_data() [ldap_authentication, ldap_authorization]
  • ldap_servers_encrypt() [ldap_servers]
  • ldap_servers_decrypt() [ldap_servers]
  • ldap_create_drupal_account() [ldap_authentication]
  • ldap_user_modify()
  • ldap_password_modify()
  • ldap_server->connect() [ldap_authentication, ldap_authorization]
  • ldap_server->bind() [ldap_authentication, ldap_authorization]
  • ldap_server->disconnect() [ldap_authentication, ldap_authorization]
  • ldap_server->search() [ldap_authentication, ldap_authorization]
  • ldap_server->user_lookup() [ldap_authentication, ldap_authorization]

LDAP Query

  • leverages LDAP Server
  • LDAP Query storage and query builder UI
  • LdapQuery Class
  • hook_ldap_query_alter()
  • Provide queries for ldap feeds fetcher
  • Provide queries for complex exceptions to ldap authorization and ldap authentication
  • API for other modules to build and execute ldap queries

LDAP Feeds

  • leverages LDAP Server
  • FeedsLdapQueryFetcher feeds fetcher fetching generic ldap queries, configured by admins
  • FeedsDrupalUserLdapEntryFetcher feeds fetcher for fetching ldap entries of drupal users who are ldap authenticated or otherwise ldap associated

LDAP Help

  • debugging tools for ldap module admins
  • general help resources

Other LDAP Modules

LDAP Authentication

  • leverages LDAP Server
  • authenticating to drupal via ldap
  • provisioning and modifying drupal accounts based on ldap accounts

LDAP Authorization

  • leverages LDAP Server
  • api for mapping ldap attributes and queries to "authorization consumers"
  • plugin for drupal roles as "authorization consumer"

LDAP Authorization OG

  • leverages LDAP Server and LDAP Authorization
  • Authorization for Organic Groups. Someone is working on this, not sure the name of the module.

LDAP User (combine functionality of ldap profile, ldap provision, and ldap synch)

  • leverages LDAP Server
  • basic mapping and synching engine for drupal user and ldap user entries or queries
  • synchronizing ldap user entry and drupal user profile (D7 Ldap profile, Sandbox LDAP Map)
  • creation and synching of ldap entries based on drupal users (D6 Ldap Synch, D7 ldap provisioning)
  • creation and synching of drupal accounts based on ldap entries (D6 Ldap Synch,
  • Reset ldap passwords from drupal password reset
  • Sycn options on manual, batch, account creation, and logon
  • leverage and extend LDAP Server's ldap to drupal user relationship definition

LDAP Views

  • LDAP integration with Views 3 Module

Fetaures That Need a Module

  • [#968594] synch drupal role to ldap group

Comments

ldap provisioning in drupal 7

ibakayoko's picture

I would like to know if http://drupal.org/project/ldap_provisioning features are avalaible into http://drupal.org/project/ldap

I would like "to create users in the LDAP database when drupal accounts are created".

I was not able to figure out how to do that in drupal 7.

johnbarclay's picture

Are you interested in testing this? I havent' been able to find anyone that wants to do provisioning in that direction. The parts of 7.x-2.0 I am working on now are for provisioning and synching from ldap to drupal, but the same user interface will be used for configuring in the other direction.

Creating LDAP accounts from Drupal

mdryan's picture

I'm also definitely interested in doing this and would be happy to try and help out with testing. At the moment I have some large Drupal 6 deployments that will eventually need to move to D7.

johnbarclay's picture

The best thread to subscribe to for ldap progress is: http://drupal.org/node/1115704

Looking for help finding LDAP config...

scsbns001's picture

Looked at "Administration / Modules " and cannot find LDAP listed.
I grep'd the drupal directory recursively for LDAP, but cannot find where the server is defined.
If there is a manual or a section of a manual that would help, please link me.

It isn't part of the Drupal

afear's picture

It isn't part of the Drupal core package, so you'll need to install it:

http://drupal.org/project/ldap

After that, it should show up in your modules list along with a configuration link where you can add server settings.

Looking for help finding LDAP config...

scsbns001's picture

Looked at "Administration / Modules " and cannot find LDAP listed.
I grep'd the drupal directory recursively for LDAP, but cannot find where the server is defined.
If there is a manual or a section of a manual that would help, please link me.

here's how to find a modules paths

johnbarclay's picture

search for hook_menu(

so for ldap server module, search for

function ldap_server_menu(

in that function will be a list of paths for the module.

LDAP integration development and modules

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: