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

Normal login not possible after guest login when using Shibboleth authentication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.8.12, 1.9.8
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      This problem is present with Shibboleth authentication:

      If guest login is allowed and user logs in as guest, he/she can't login with his/her own account without restarting browser. Login link returns back to front page when selected.

      Solution:

      When checking user's login status, guest login should not be considered as 'real' login. Fix could be following:

      File: http://moodle.cvs.sourceforge.net/moodle/moodle/auth/shibboleth/index.php

      diff -u -r1.3.2.1 index.php

      — index.php 2 Jun 2005 14:34:22 -0000 1.3.2.1

      +++ index.php 27 Aug 2005 12:29:04 -0000

      @@ -4,7 +4,7 @@

      require('../../config.php');

      require('lib.php');

      • if (isloggedin()) { // Nothing to do

      + if (isloggedin() && $USER->username != 'guest')

      { // Nothing to do redirect($CFG->wwwroot.'/index.php'); }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Mar/10