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

CAS server login fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7, 1.8
    • Component/s: Authentication
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      CAS login succeeds, but the user ends up with guest access only. I think this is because auth/cas/login.php is basically a copy of login/index.php, and the new roles implementation has not been copied across. The patch below to auth/cas/login.php fixed this problem for me, at least on basic testing (though I suspect a better approach might be to add the CAS stuff directly to login/index.php).

      — login.php 2006-10-12 19:37:05.000000000 +0100
      +++ login.php.orig 2006-10-09 03:00:44.000000000 +0100
      @@ -158,10 +158,6 @@
      }

      reset_login_count();

      • if (!empty($CFG->rolesactive)) { - load_user_capability(); // load user's capabilities - load_defaultuser_role(); // All users get this by default - }

      redirect($urltogo);

      @@ -269,11 +265,6 @@
      }

      reset_login_count();

      • if (!empty($CFG->rolesactive)) { - load_user_capability(); // load user's capabilities - load_defaultuser_role(); // All users get this by default - }

        -

      redirect($urltogo);

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            ctcmw C Western
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              7/Nov/06