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

LDAP Enrolment - Allow course category to be mapped to an LDAP field

    XMLWordPrintable

Details

    • MOODLE_27_STABLE
    • MDL-42045_master
    • Hide
      1. Configure ldap enrolments on your moodle instance
      2. Add an additional text field to your course objects and set a category name for each course. (Can be empty / unset for some of the courses)
      3. Set enrol_ldap/course_category setting to map to your new field name.
      4. Create the course's categories in your moodle instance
      5. Run enrol/ldap/cli/sync.php
      6. Verify courses have been created properly in the pre-existing categories.

      Test category auto creation:

      1. Set enrol_ldap/auto_create_category to true for auto creation, make sure course categories do not exist yet in the moodle instance
      2. Run enrol/ldap/cli/sync.php
      3. Verify courses and categories have been created properly.

      Test category update:

      1. Run enrol/ldap/cli/sync.php
      2. Update one the category field for one of the courses in LDAP.
      3. Set enrol_ldap/course_category_updateonsync setting to true
      4. Run enrol/ldap/cli/sync.php again
      5. Make sure course's categories have benn updated.
      Show
      Configure ldap enrolments on your moodle instance Add an additional text field to your course objects and set a category name for each course. (Can be empty / unset for some of the courses) Set enrol_ldap/course_category setting to map to your new field name. Create the course's categories in your moodle instance Run enrol/ldap/cli/sync.php Verify courses have been created properly in the pre-existing categories. Test category auto creation: Set enrol_ldap/auto_create_category to true for auto creation, make sure course categories do not exist yet in the moodle instance Run enrol/ldap/cli/sync.php Verify courses and categories have been created properly. Test category update: Run enrol/ldap/cli/sync.php Update one the category field for one of the courses in LDAP. Set enrol_ldap/course_category_updateonsync setting to true Run enrol/ldap/cli/sync.php again Make sure course's categories have benn updated.

    Description

      • Allow mapping of course category to an LDAP field.
      • Add setting to allow auto creation of course categories that came from LDAP if they do not exist

      Added 3 new settings to enrol/ldap:
      1. course_category - The LDAP field to be mapped to course's category name (Text)
      2. autocreate_category - Should we auto create category if it does not exist yet?
      3. course_category_updateonsync - Should we update course category during cli sync?

      Attachments

        Issue Links

          Activity

            People

              nitzan Nitzan Bar
              nitzan Nitzan Bar
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: