Hello.
I am a new user to Moodle, and have been tasked by my school to create a sample system to see how it can benefit our staff and students. I have managed to get a simple Moodle set up, and I am using an LDAP connection to our Active Directory to allow users to login via their school IT accounts.
However, I would like to use the synchronisation options available to automatically add and update user accounts to the Moodle database. However, for some unknown reason, this only works for staff and not for any pupils.
Our Active Directory is organised so that the staff users are contained within one OU called staff, and our pupils are contained within a sub OU within one called pupil.
When I run the auth_ldap_sync_users.php file from the command line in Windows a count is shown that there are 866 users in one OU (pupil) and 120 users in another (staff). The system then proceeds to add / update the staff records but totally skips the pupils.
If I edit my LDAP settings in Moodle so that only the pupil OU is listed and then re-run the script, the same count is given (866) followed by an message stating "Did not get any users from LDAP - error? - exiting".
Does anyone have any idea why one OU will work whilst another will not? Also, why does both OUs work for authentication at login but not synchronisation?
Thanks in advance for any ideas.