I think you should post this question in the Authentication forum .
I think what your asking for is Cron_synchronization_script.
Assuming your using Linux server.
Open your terminal and key in the following
- cd Moodle\auth\ldap\cli
- sudo php -f sync_users.php
if its windows i guess it should be something like
- C:\php path\php.exe -f "C:\moodle\server\moodle\auth\ldap\cli\sync_users.php"
Hope this tip helped.
Where else for enrolment look at ldap enrolment.
and you can do the same running the script for enrolment in "enrol/ldap/cli/sync.php"