ndunand / moodle-enrol_attributes

This plugin allows users to be enrolled according to any value stored in their user profile.
https://moodle.org/plugins/enrol_attributes
18 stars 22 forks source link

Auto-enrolment of LDAP-authenticated accounts doesn't work #19

Open ecampbell opened 6 years ago

ecampbell commented 6 years ago

I am running Moodle 3.1 on Linux, and I set up a course where students are automatically enrolled based on a custom profile field which stores the programme of study they are engaged in. Student log in to Moodle using LDAP authentication. However, students who authenticate via LDAP don't get auto-enrolled in courses. Test accounts created on Moodle with manual authentication seem to auto-enrol OK.

ecampbell commented 6 years ago

I looked at the log table in the database, and manual accounts generate log entries when they auto-enrol into courses. LDAP accounts do not.

Kovinis commented 6 years ago

Re-run scheduled task -> Legacy cron processing for plugins and see what result you get. Also enable debug messages.