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

LDAP authentication: Don't mass create users by cronjob

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.4, 2.5.7, 2.6.4, 2.7.1
    • Fix Version/s: DEV backlog
    • Component/s: Authentication
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      Preface:
      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.

      Feature Request:
      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.

        Attachments

        1. auth.php
          84 kB
          Alexander Bias

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated: