Can't use LDAP Authentication

Can't use LDAP Authentication

by Phil Liva -
Number of replies: 1
Hi

I am a total newbee to Moodle.  Still configuring.
I am trying to use a Windows (2003) LDAP server for authentication, but keep getting the following error message when logging in.


Fatal error: Call to undefined function: ldap_connect() in c:\program files\easyphp1-7\www\moodle\auth\ldap\lib.php on line 420

I don't have a lot of expertise with LDAP, but I am able to ping my ldap server.  Not sure if Moodle LDAP config is correct. 

Any help would be most appreciated.

Thanks

Phil Liva
Average of ratings: -
In reply to Phil Liva

Re: Can't use LDAP Authentication

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Most likely you haven't enabled the extension in the php.ini file and/or you haven't put the extension .dll somewhere it can be found. Try putting the ldap .dll (don't remember exact name) from the extensions subdirectory (of php) in to WINNT\system32. Find php.ini, search for the extensions bit and uncomment the ldap extension bit. Restart the web server.

Sorry for slight vagueness, but hopefully this gives you a clue.

Ahh.... see....

http://uk2.php.net/manual/en/ref.ldap.php

(particularly the Win32 users bit - it's three .dll's you need to copy)