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

/user/edit.php redirects (loops) to /etc/user.php continiously when in LDAP authentication mode with "Force users to login" policy set to true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Firefox 2.0, IE6 and IE7 (probably all others)
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      when "Force users to login" site policy is set to true and running LDAP authentication (against Active directory), Moodle will authenticate and redirect to /user/edit.php. Unfortunately, this continues until a browser crash. If the Force users to login policy is set to false, the mechanism works as expected and Moodle presents the edit page.

      Here is what the edit.php shows, as you will notice it redirect back at itself,

      HTTP/1.1 303 See Other
      Date: Sat, 03 Nov 2007 09:01:30 GMT
      Server: Apache/2.2.3 (Fedora)
      X-Powered-By: PHP/5.1.6
      Expires: Thu, 19 Nov 1981 08:52:00 GMT
      Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
      Pragma: no-cache
      Location: http://portal.engagelearn.com/user/edit.php?id=5&course=1
      Content-Length: 246
      Connection: close
      Content-Type: text/html; charset=UTF-8

      <meta http-equiv="refresh" content="0; url=http://portal.engagelearn.com/user/edit.php?id=5&amp;course=1" /><script type="text/javascript">
      //<![CDATA[
      location.replace('http://portal.engagelearn.com/user/edit.php?id=5&course=1');
      //]]>
      </script>

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            radekz Radek Zajkowski
            Tester:
            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:
              3/Mar/08