Moodle

Local user cannot log on if network user with same username exists

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.8
  • Fix Version/s: 1.8
  • Component/s: MNet
  • Labels:
    None
  • Environment:
    All 1.8+ Moodles who run single-sign on, and accept users who have authenticated at a remote Moodle.
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE

Description

You may have two users with the same username on your system - this is now possible because the username is no longer unique, except in conjunction with the mnethostid field. If the local user tries to log on, the login will fail.

Activity

Hide
Donal McMullan added a comment -

Fix applied this afternoon - I don't have the resources to test all auth mechanisms, but the fix works in the trivial case.
Could use some QA

Show
Donal McMullan added a comment - Fix applied this afternoon - I don't have the resources to test all auth mechanisms, but the fix works in the trivial case. Could use some QA

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: