We use moodle together with LDAP authentication. We have activated the LDAP cronjob to get rid of moodle accounts of users who have been deleted in ldap. Our LDAP server has approx. 15000 accounts, but only a fraction of these use moodle. Now, the LDAP cronjob kindly creates moodle accounts for every LDAP account which isn't nessecary.
We have commented out the user addition in /auth/ldap/auth.php, line 815 to 868. It would be great if this could be made optional by using a preference in LDAP configuration form (http://YOURMOODLEURL/admin/auth_config.php?auth=ldap).
The changes in code for creating this preference should fairly simple - please let me know if this feature request is approved, then I will supply diffs for that.