Installation and Upgrades

Last modified: February 12, 2007 - 20:36

Fresh Install
LDAP Integration module does not have any specific install instructions. Simply install the module following the Drupal contributed module installation guide.

Upgrades
Between 4.7 and 5.x versions of the module, the module's backend was overhauled and it also was being transferred to new maintainers. As such, upgrading the module from previous versions to 5.x will include a complete uninstallation of the old version and re-installation of the new version. Also, ldap configuration information will have to be re-entered.

  1. uninstall the old module
  2. remove the module entry from the system table
    • This sql query:
      SELECT name FROM system

      should show you all of the modules that were in installed (active or inactive). You should see entries for ldapauth, ldapgroups or ldap_integration.

    • Delete those entries. For e.g.
      DELETE FROM system WHERE name = 'ldapauth'
  3. Install the new version module following the drupal 5.x module installation guide. It will create the table and the new module.

PHP-LDAP Library needed

christian_M - January 22, 2009 - 13:35

This might sound obvious but it was not to me!

This module relies, of course, on the PHP-LDAP library. Make sure it is installed on your server.
Saves a lot of hair-pulling.

This might sound obvious

tryitonce - January 26, 2009 - 14:32

This might sound obvious ...

Thanks for the advice - could you just add the details / link of the module(s) you are referring to. This would help as running a search for "PHP-LDAP library" or just "PHP-LDAP" is not providing the answer.

But its great not to have to figure it all out on your own!!!!!!

Going though the process of installing LDAP.

M_Saltmarsh - January 26, 2009 - 14:59

# installed
sudo apt-get-get intall php5-ldap

# check module list
apache2ctl -M

# did not find ldap_module so run
sudo a2enmod ldap

# check module list again and found ldap_module
apache2ctl -M

run phpinfo() in browser and found Ldap section after Json.

Now on to adding new ldap_integration-6.x-1.0-alpha2 package and see if it wires up!

mix up

magoo - April 7, 2009 - 08:16

2 things are mixed here: apache module and php ldap.

The first enables the use of LDAP with apache and the second for php.

AFAIK, there is no need to enable apache's ldap support in order to make drupal's module work.

so to enable php ldap, install the corresponding packages from your distribution (if not already installed: check with phpinfo()) and you may need to reload the apache server (not sure if required).

Slow

Ubuntu_Warrior - February 10, 2009 - 23:48

Is it just my install or is this module extremely slow? I seemed to auth fine off our OpenLDAP server (hosting about 250 business users) it just took a long time to do and gave me limited options on the menu. I am also getting the following error when trying to access the My Account menu option:

warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/drupal-6.9/sites/all/modules/ldap_integration/ldapdata.module on line 355.

We have been using Drupal for many years now but LDAP support is a deal-breaker for us as we cannot administer our user base on Samba/OpenLDAP and Drupal.

Any advice/help on this?

 
 

Drupal is a registered trademark of Dries Buytaert.