Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-47018

LDAP Sync script: Add grace period for users who have disappeared in LDAP server



    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: BACKEND
    • Component/s: Authentication
    • Labels:
    • Affected Branches:


      The LDAP Sync script takes care that Moodle accounts are up-to-date. In the event that a LDAP user disappears in the LDAP server, the script can be configured to suspend or delete the corresponding Moodle account.

      This all-or-nothing solution does not fit all scenarios.

      It may happen that a LDAP user disappears one day (for example, because the student has been exmatriculated because he didn't pay his study fee) and re-appears some days later (because he eventually payed this fee).

      If I configure the script to delete users, the Moodle account is lost already when the LDAP user re-appears.
      If I configure the script to suspend users, the Moodle account can be revived, but in most of the cases I end up with suspended Moodle accounts which will never be used again.

      I propose to add another option to the LDAP script which suspends users which have disappeared in LDAP for a configurable amount of days and deletes them only after this grace period.


          Issue Links



              • Votes:
                1 Vote for this issue
                3 Start watching this issue


                • Created: