Urgent auto enrolment issue

Urgent auto enrolment issue

by Simon Rickards -
Number of replies: 1

I've been working on the same issue for days now and I cannot for the life of me fathom out where I am falling down. I have searched all the forums for people who may have had the same issue to no avail.

We're running Windows 2003 with a MSSQL backend. Everything is working fine in Moodle, authentication is working without problem, etc etc. The problem is just with auto course creation and enrolment.

To debug the issue we've been running the enrol/ldap/enrol_ldap_sync.php file and this is what we find: the courses are created...excellent...but the enrolment of the users to those courses is failing. Further to that it seems that in searching for the users to add the the group it is actually searching for the group itself rather than the user (see below):

== Synching maths101 Could not find user maths101(stud), skipping == Synching maths101 Could not find user CN=maths101,OU=Staff,OU=NCSUsers,DC=newent,DC=school, skipping == Synching maths101 Could not find user CN=maths101,OU=Students,OU=NCSUsers,DC=newent,DC=school, skipping

I've been over and over the settings but everything is as it should be as far as I can see. Please, can anyone help or give a suggestion?

Average of ratings: -
In reply to Simon Rickards

Re: Urgent auto enrolment issue

by Simon Rickards -

Moodle version: 1.9.3

PHP version: 5.2.6

Authentication settings:

Host URL: 10.7.108.1

Version 2

LDAP encoding: utf-8

User type: MS AD

Contexts: OU=NCSUSers....etc

Search Subcontexts: Yes

Dereference aliases: No

User attribute: sAmAccountName

Member attribute: memberof

Force Change Password: No

Use standard change password page: no

Password format: plain text

Expiration: no

expiration warning: 10

Grace logins: no

Course Creators: OU=staff.....etc

Removed ext user: Keep internal

NTLM SSO

Enable: no

Subnet: 10....etc

First Name: givenName

Surname: sn

Email Address: mail

City/Town: Newent

Country: UK

ID Number: employeeID

LDAP Enrolment:

Server Settings - as above

Role Mapping:

Course Creator: OU=staff...etc - - - - distinguishedName

Teacher: OU=staff....etc - - - - - distinguishedName

Student: OU=students....etc - - - - distinguishedName

enrol_ldap_objectclass - group

uid: cn

enrol_ldap_course_idnumber - cn

enrol_ldap_course_shortname - cn

enrol_ldap_course_fullname - cn

enrol_ldap_course_course_summary - cn

Enable ldap_auto_create - yes

category - Misc...