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

Logging in connects to external database needlessly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4
    • Component/s: Authentication
    • Labels:
      None
    • Testing Instructions:
      Hide

      1/ create external user table with username and password
      2/ setup external db authentication - external password with keep internal accounts ("Removed ext user" setting)
      3/ try to login as external user
      4/ change password to internal and manually change users password
      5/ somehow break the ext auth connection info
      6/ verify user can still enrol using external username and internal password

      Show
      1/ create external user table with username and password 2/ setup external db authentication - external password with keep internal accounts ("Removed ext user" setting) 3/ try to login as external user 4/ change password to internal and manually change users password 5/ somehow break the ext auth connection info 6/ verify user can still enrol using external username and internal password
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w41_MDL-35695_m24_authdb

      Description

      Hi,
      I've got an external database authentication set up on moodle for connections between moodle and another server.

      Weirdly, when logging in, Moodle seems to want to connect to this external database. But there is no need for it to do because the user in question has the authentication type set to manual authentication.
      So Why is Moodle connecting?

      If the external database authentication method is enabled but the database isn't available at that time of logging in, the Moodle site runs very slowly as it tries to connect to it during log in.
      But surely as the user is manual, it shouldn't even bother trying?

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            dan.support@howtomoodle.com Daniel Bennett
            Integrator:
            Aparup Banerjee
            Tester:
            Jason Fowler
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Dec/12