I have been struggling with auth_ldap_sync_users.php for a little while now. I am running it on my development server but cannot run it on my production server as it marks some active users as deleted. The development server uses a backup of the production server database and sits on the same network.
Can anyone help here? What are the criteria which the script uses to determine that a user should be deleted?
My users are in Active directory. They can and do log in both to the network and to Moodle yet when I run the sync script as well as removing many old students and adding some new ones I loose a number of current staff and students.