LDAP doesn't create account until first login

LDAP doesn't create account until first login

by Alex Messinger -
Number of replies: 1

We have LDAP authentication set up between our Active Directory and moodle. A student account is created in Moodle only when that user logs in for the first time. However, we are often trying to enroll them in their courses before their first login. Faculty likes to email their class before their initial login as well.

Are there any solutions here besides manually enrolling all students?

Average of ratings: -
In reply to Alex Messinger

Re: LDAP doesn't create account until first login

by Michael Penney -
Hi Alex, look in auth/ldap - auth_ldap_sync_users.php, set up a cron to run this to sync users from your LDAP directory to Moodle (if you have alot of users, test it first).