Hey folks,

I have looked over the documentation for ldap_integration about 30 times, and I can't seem to figure out what I need to set in the ldap_integration module settings and conf.php to get this thing working.

I have a Windows 2003 domain controller / Exchange Server at 192.168.25.8. I've installed Drupal 4.6.3 on another Windows 2003 server running IIS 6, PHP 5.0.4, and MySQL 4.1.14. I'm trying to get the ldap_integration module working so I don't have to retype 163 Windows users into the Drupal user list.

It's unclear what I have to set in the conf.php file - I have the following in the top of that file:

// Edit this constant so that it indicates the LDAP attribute containing the login password
define(LDAP_PASSWORD_ATTRIBUTE, 'userpassword');

// Edit this constant so that it indicates the LDAP attribute containing the user's mail address
define(LDAP_EMAIL_ATTRIBUTE, 'mail');

// Admin must define a user able to write users' attributes (to generate new passwords when they are lost)
define(LDAP_WRITER_USER_DN, 'cn=admin,dc=mydomain,dc=com');
define(LDAP_WRITER_USER_PASS, 'admin_password');

// Admin must define a user able to read users' attributes (to read e-mail addresses when passwords are lost)
define(LDAP_READER_USER_DN, 'cn=admin,dc=mydomain,dc=com');
define(LDAP_READER_USER_PASS, 'admin_password');

What am I supposed to customize in this file? I'm also getting errors in the LDAPInterface.php file when I try to login as a user:

Fatal error: Call to undefined function ldap_connect() in d:\Intranet\modules\ldap_integration\ldap_integration\LDAPInterface.php on line 105

So I've made changes to that file to point it to the right place:

  function LDAPInterface() {
    $this->connection = null;
    $this->server = 192.168.25.8;
    $this->port = 389;
    $this->secretKey = NULL;
  }

To no avail. Am I screwing up everything? Please can somebody link to a step by step install guide to this module?

Thanks,

John @ TurboChef

Comments

TurboChef’s picture

Bueller?

tclineks’s picture

10 bucks says you don't have ldap support (compiled in)/(turned on) for php =)