Help Setting up moodle -ldap
Bit of a novice at this so go easy with.
Setup a server 2008 with IIS 7. configured PHP and included the ldap exstension. After tons of issues got moodle installed and its all setup i can access it. Now i cant for the life of me get the ldap to work. Ok so heres the background info for you.
mysql version 5.5
php ver 5.3.6
Moodle Ver 1.9
Now i have followed the instructions on the moodle.org website and still struggling.
I have created a file called ldap.cong in C:\OpenLDAP\sysconf. inserted the line TLS_REQCERT never in the file.
On the 2008 dc server which contains the AD i have installed CA servers. I could not install the enterprise version so had to go with the standalone option. As i have never done this before i have no idea what im doing and whether its done right or not. needless to say when i try and connect using LDP.exe on the dc to my moodle server running the ldap i get this error message:
ld = ldap_sslinit("myldapservername", 636, 1);
Error 81 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3);
Error 81 = ldap_connect(hLdap, NULL);
Error <0x51>: Fail to connect to myldapservername.
I have tried using the IP and using port 389. Neither work.
I have checked the Phpinfo and the ldap section is there with the following info :
LDAP Support enabled
RCS Version $Id: ldap.c 306939 2011-01-01 02:19:59Z felipe $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20319
SASL Support Enabled
Directive Local Value Master Value
ldap.max_links Unlimited Unlimited
Go easy as like i say ive not done all this before and really trying to get it to work. Really frustrated at this problem as i expect i have not done something simple due to my distinct lack of experience in this area.
Cheers for any help