Just been reading the LDAP autoenrollment document at http://moodle.org/mod/forum/discuss.php?d=31761 and wondered if the reverse could somehow be achieved ie removing students from Moodle using LDAP information. We use LDAP from our AD to enable students to log on to our Moodle server. The year group names are also stored within AD. Year 11 students have now left so there must be some way of removing the name of these students from all courses from Moodle.
Don't know if this has been solved before - apologies if it has but I can't find it.
Any help/pointers appreciated.
David Berry
Does this work yet? cause mine isn't
If you want to remove enrolments (but not Moodle's user accounts), use .../enrol/ldap/enrol_ldap_sync.php.
If you want to remove Moodle's user accounts, use .../auth/ldap/auth_ldap_sync_users.php
Saludos. Iñaki.
If you want to remove Moodle's user accounts, use .../auth/ldap/auth_ldap_sync_users.php
Saludos. Iñaki.