Getting this error when attempting to log in:
Fatal error: Call to undefined function ldap_connect() in C:\xampp\htdocs\drupal\sites\all\modules\ldap_integration\includes\LDAPInterface.inc on line 132
(NOTE: There is no function ldap_connect () defined in the LDAPInterface.inc module.)

Environment:
Windows Server 2003 with Drupal Core Version 6.17 installed using XAMP (PHP, MySQL, Apache) install Kit for Windows Server.
Active Directory 2008
ldap_integration-6.x-1.0-beta2.tar.gz Module installed

Server settings:
Name: sfmclan
LDAP server: 10.38.6.29 (How should this be entered?)
port: 389
Use Start-TLS: UNCHECKED
Store passwords in encrypted form: UNCHECKED

Login Procedure
Base DNs: cn=Users,dc=sftc,dc=org
UserName attribute: sAMAccountName
Email attribute: mail
PHP to transform login name: EMPTY
PHP to filter users based on their LDAP data: EMPTY

Advanced Configuration
DN for non-anonymous search: cn_Administrator,cn=Users,dc=sftc,dc=org
Password for non-anonymous search: (password)

I ran the Test button on server setup and it verified connection to server.

Configuration Settings:
Authentication Mode is Mixed
Disallow loginand log conflict is CHECKED
Do Not Store users' passwords during session is CHECKED
Remove password change fields from user edit form is CHECKED
Do Nothing is CHECKED for After Email on user edit form.

When I go to log a user id, I got the error above. I looked at the LDAPinterface.inc and did not find the function ldap_connect().

Can anyone help? or do you know who I can refer this too? This seems so straight forward, yet I can't get pass this.. Am I missing something?

Comments

auberdjinn’s picture

It's a function in PHP's LDAP module - you probably just need to enable this. See http://dk2.php.net/manual/en/ldap.installation.php

ronho’s picture

Hi

Thanks for replying. The question that I have is that does PHP LDAP support need to be activated as well? I thought that rthe DRUPAL LDAP Integration module was self sufficient and didn't need any thing else?

I did activate the PHP LDAP extension. And the error msg went away, however, kept getting username and password not recognized. This is the DRUPAL error message. It seems that the LDAP Integration Module is bypasssed.

Am I correct or off base?

verta’s picture

Title: Call to undefined function ldap_connect() in C:\xampp\htdocs\drupal\sites\all\modules\ldap_integration\includes\LDAPInterface.in » Call to undefined function ldap_connect() in sites\all\modules\ldap_integration\includes\LDAPInterface.inc

You're making progress - you might want to check your settings in the LDAP auth module of what to do if the Drupal user does not exist:

Choose user conflict resolve procedure: *
Disallow login and log the conflict
Associate local account with the LDAP entry

Make sure it's what you want. See if the user is being created in the users table or not.

Check the log on the reports page also, there might be a message that helps when the login fails.

My thought is that since the initial problem with the PHP module enable/disable issue is resolved, that you might close this one as closed (fixed) and open a new issue if you are still unable to use LDAP login.

cgmonroe’s picture

Status: Active » Closed (fixed)

Clearing out old support requests - reopen if problem still exists in newest code (dev)

FWIW - Ldap_integration does depend on PhP being compiled with ldap support. Most modern distros come with this.