LDAP - Just cant get it working new build

LDAP - Just cant get it working new build

by Russell Hampton -
Number of replies: 1

Hi, 

I have been trying for 2 days now, with trying to get LDAP authentication working with MS AD.

running Moodle 2.4.3+ (Build: 20130418) under xampp against AD on M/S 2008 Server.

I Know it is connecting with bind settings, as if its password is wrong I get the normal error, when I fix that error disapears. I have used ldap.exe (from the same machine running xampp) to get my DN values as per http://docs.moodle.org/24/en/Active_Directory

I feel there is something stupid I am missing.

Q1. Is there a specific log I should be checking? Moodle logs show the login attempt and clicking on the "login error" gives a pop up page "No courses in this category"

Q2. Do I have to import the users from AD first? (I am assuming a user can just log in if they are in my AD, and register). Running the sync_users script below gives.

C:\xampp\php>php \xampp\htdocs\moodle\auth\ldap\cli\sync_users.php
Connecting to LDAP server...
Creating temporary table tmp_extuser
Did not get any users from LDAP -- error? -- exiting

Q3. Is there a list of specific fields the AD entry must have?

Regards Russell

Average of ratings: -
In reply to Russell Hampton

Re: LDAP - Just cant get it working new build

by Russell Hampton -

Turned out to be the rights of the user I was using to bind with.

Slowly fround this by adding debug to ldaplib.php.

Regards Russell