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

When going direct to a configuration page for authentication module when not logged in an error occurs

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Make sure your site has autologin guest turned on
      log out
      go to /admin/auth_config.php?auth=ldap
      you should get an access denied error

      Turn off autologin guest
      log out
      go to /admin/auth_config.php?auth=ldap
      You should be redirected to the login page

      Show
      Make sure your site has autologin guest turned on log out go to /admin/auth_config.php?auth=ldap you should get an access denied error Turn off autologin guest log out go to /admin/auth_config.php?auth=ldap You should be redirected to the login page
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-31488_auth

      Description

      For example, if you go to http://demo.moodle.net/admin/auth_config.php?auth=ldap while not logged in, you get a section error.

      An example stack trace from one of my test sites is:
      Section error!
      More information about this error
      Stack trace:
      line 429 of /lib/setuplib.php: moodle_exception thrown
      line 5796 of /lib/adminlib.php: call to print_error()
      line 12 of /admin/auth_config.php: call to admin_externalpage_setup()

      This could happen with other admin pages.

      Expected results is either a message saying not enough permissions or a redirect to login page (most likely the latter)

        Attachments

          Activity

            People

            Assignee:
            andyjdavis Andrew Davis
            Reporter:
            hughdavenport Hugh Davenport
            Peer reviewer:
            Sam Hemelryk
            Integrator:
            Dan Poltawski
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/May/12