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

CAS ignores the 'attribute creators' setting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.1, 3.7
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:

      Description

      The auth_cas plugin has the 'attribute creators' parameter that can be used to automatically assign the creator role to users when they logged in.

      Upgrading from 3.3 to 3.5 broke this behaviour.

      A quick analysis of the auth_cas and auth_ldap source code shows that the sync_roles() method of the auth_plugin_ldap was rewritten to deprecate the iscreator() method and to use the is_role() method instead. The 3.5 auth_plugin_cas class is still relying on sync_roles() calling iscreator() and using the 'attrcreators' config parameter.

      My university still needs the old 'attribute creators' feature. So we have patched our Moodle with the attached patchfile.

      I don't know what is the best solution for Moodle 3.5:

      • rewrite the auth_cas plugin to be independant of the auth_ldap one
      • or force the users of the auth_cas plugin to migrate to the new 'system role mapping' used by the new auth_ldap plugin.

      Regards,
      Johan

        Attachments

          Activity

            People

            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: