I'm trying to run some LDAP migration tests on a dev copy of our Moodle site but got a weird behaviour that I've never seen before:
- configure LDAP to match live site
- run php sync_users.php via cli
- script runs through and lists all expected users and assigns them an "id"
- script completes
- user list in Moodle doesn't show any of the newly created users
- manually trying to view a user via the "id" listed in the cli gives an error that the user does not exist
Oddly if I run the script a second time the users are listed again but with new ID numbers, again though they don't make it to the actual user table.
Any idea what's going on? Moodle version is 3.2.4 and is the same as on our live site where the sync does work as expected.