By ChristopherC on
I am trying to get LDAP authentication going on my drupal site. However, when I go to the page to configure it and test, I get the following error:
Fatal error: Call to undefined function ldap_connect() in /etc/drupal/6/sites/all/modules/ldap_integration/includes/LDAPInterface.inc on line 132
One person said they resolved the issue when they found out they didn't have the PHP Library installed. I am not sure what this means though. Would appreciate any help, thanks.
Comments
Can anyone offer any
Can anyone offer any assistance with this?
You need to have PHP compiled
You need to have PHP compiled with LDAP support. See http://www.php.net/manual/en/book.ldap.php. There are basic installation instructions. If you are compiling PHP yourself, this means using the --with-ldap argument to the configure script. If you are using a precompiled PHP binary, you may have to install a separate package to get LDAP support. Installing this package really depends on your platform.
You can try the following on
You can try the following on Debian, probably also on Ubuntu:
Use prefix "ldap://"
I had this problem and I'm not dumb enough to forget to install PHP. Dah.
I was only able to make it work and make thie message disapear prefixing "ldap://" to the LDAP hostname on the LDAP Server field.
My server name is bluepages.ibm.com so I had to write "ldap://bluepages.ibm.com" on the server settings form.
Let me know if it worked for you.
fails when attempting login with non-existent account
I am getting this error, but only when I try to log in using a non-existent account. And it happens whether or not I precede the server name with "ldap://".
Update - well, that was silly. It was only working with existing accounts because it wasn't checking against LDAP. When I tried logging in with a non-existent account, that's when it would check against LDAP. Bottom line - I didn't have PHP compiled with LDAP.