Got command line access to the 3.2 moodle? IF so, there is a command line only php script in moodlecode/auth/ldap/cli/ called sync_users.php.
Make a backup of DB before using.
Comments in the header of that script for version 3.2.2:
* Notes:
* - it is required to use the web server account when executing PHP CLI scripts
* - you need to change the "www-data" to match the apache user account
* - use "su" if "sudo" not available
* - If you have a large number of users, you may want to raise the memory limits
* by passing -d momory_limit=256M
* - For debugging & better logging, you are encouraged to use in the command line:
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
* - If you have a large number of users, you may want to raise the memory limits
* by passing -d momory_limit=256M
* - For debugging & better logging, you are encouraged to use in the command line:
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
*
It takes settings from config of Moodle and as you can see, it has options for debugging and better logging. They also warn that it could take a long time ... depending.
'spirit of sharing', Ken