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

Implement scheduled task for LDAP Enrolments Sync

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3
    • Component/s: Enrolments, Tasks
    • Labels:
    • Testing Instructions:
      Hide

      Requirements

      LDAP server with users and security groups, courses corresponding to these groups

      Testing instructions

      1. Set up LDAP enrolments on a Moodle course and test by running the current method - php /path/to/moodle/enrol/ldap/cli/sync.php
      2. Ensure you see a message about this CLI script being deprecated in favour of sync_enrolments task
      3. Change group memberships on the LDAP server
      4. Enable the new task from Site administration > Server > Scheduled tasks
      5. After the task runs, ensure that the group changes have been reflected in course enrolements
      6. Execute php /path/to/moodle/enrol/ldap/cli/sync.php again
      7. Ensure you see a message about this CLI script being deprecated (same than above) and an error (may look similar to the previous one, although this one stops the execution) about the execution aborted because of the scheduled task being enabled
      Show
      Requirements LDAP server with users and security groups, courses corresponding to these groups Testing instructions Set up LDAP enrolments on a Moodle course and test by running the current method - php /path/to/moodle/enrol/ldap/cli/sync.php Ensure you see a message about this CLI script being deprecated in favour of sync_enrolments task Change group memberships on the LDAP server Enable the new task from Site administration > Server > Scheduled tasks After the task runs, ensure that the group changes have been reflected in course enrolements Execute php /path/to/moodle/enrol/ldap/cli/sync.php again Ensure you see a message about this CLI script being deprecated (same than above) and an error (may look similar to the previous one, although this one stops the execution) about the execution aborted because of the scheduled task being enabled
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-57631_ldap_enrol_sync_task_master

      Description

      Currently LDAP enrolments are updated when a user logs in, or when /path/to/moodle/enrol/ldap/cli/sync.php is run either manually or through a cron.

      This should be implemented as a scheduled task in Moodle, perhaps disabled by default.

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          19 kB
        2. screenshot-2.png
          screenshot-2.png
          44 kB
        3. screenshot-3.png
          screenshot-3.png
          50 kB
        4. screenshot-4.png
          screenshot-4.png
          24 kB
        5. screenshot-5.png
          screenshot-5.png
          63 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17