We have LDAP authentication running on a staff intranet moodle. We were finding that as new staff logged in (the auth_ldap_sync_users.php is not in use atm due to the AD 1000+ users issue - more so, I havent properly resolved it yet for our site), they were getting the do you want to enrol onto this course box.
As this is for staff, we ideally want all staff to automatically be enrolled on all courses. I thought, a solution for this, would be ldap auto-enrollment and use the same Course ID Number for all of the common courses. This matches with a group where all staff are located in, within active directory.
The problem I have found though is the way the enrol_ldap script runs, when a new user logs onto a moodle with 2+ courses setup with the same Course ID Number (for this sake, say MG1), the user will only be automatically enrolled onto the course with the lowest course id number (the primary key of the course table - not the one used for the auto-enrollment) with the other courses staying un-enrolled. As a work around, i thought to run the enrol_ldap_sync.php script but found the following output...
== Synching MG1
The SQL then regurgitates all of the courses which are setup with the common Course ID Number.
My main question is either, does anyone know of how to hack moodle to over look this issue and enrol all users to all courses OR does anyone know of an alternative method which would suit our situation?
Any advice/help would be gratefully received.
Thanks
Ian