Affects Version/s: 2.7.1
Fix Version/s: None
The Moodle core LDAP synchronization script only provides the option to suspend or delete Moodle accounts for LDAP users which have disappeared in LDAP.
This all-or-nothing solution does not fit for all scenarios.
For example, a LDAP account may disappear because a student has been exmatriculated automatically for formal reasons (missed paying student fee or anything like this). Some days later, he is immatriculated again when the formal problems have been solved and re-appears in LDAP.
If I configure Moodle to delete Moodle accounts as soon as a LDAP account disappears, the Moodle account is already lost if the LDAP account re-appears.
If I configure Moodle to suspend Moodle accounts as soon as a LDAP account disappears, Moodle accounts of re-appearing LDAP accounts can be revived, but I end up with a large amount of suspended accounts which will never be needed.
I would like to propose to add another option what to do if a LDAP user disappears:
This option should suspend users which have disappeared in LDAP for a configurable amount of days and delete them only after this grace period.