o365-moodle icon indicating copy to clipboard operation
o365-moodle copied to clipboard

Apparent Regression — Upper-case UPNs Failing to match to Moodle Users

Open bbusschots-mu opened this issue 2 years ago • 2 comments

Some years ago this plugin failed to match users if the Office365 UPN had upper case letters in it, because the comparison to the Moodle email/username field was failing because Moodle casts those to lower case.

This results in nonsense errors when the user tries to log in of the form:

The Microsoft 365 account [email protected] is already matched with Moodle User [email protected]. To complete connection please log in as that Moodle user first and follow the instructions in the Microsoft block.

The user is if course logging in as the account the error is telling them to, and there is no way past this error — the user is locked out of Moodle!

bbusschots-mu avatar Sep 25 '23 09:09 bbusschots-mu

Hi @bbusschots-mu

Could you check if this is still a problem please? I tested it again just now on the latest Moodle 4.1/4.2/4.3 releases of the plugin, but I didn't see any issue. Here are the steps that I followed:

  1. Create Microsoft account with UPN [email protected].
  2. Create Moodle account with username [email protected] and authentication method auth_oidc.
  3. Log in to Moodle using auth_oidc and username [email protected].

Are different steps required to recreate the issue?

Regards, Lai

weilai-irl avatar Jan 18 '24 17:01 weilai-irl

Hi @weilai-irl — I'be been on extended leave for nearly 2 months, so just getting caught up now.

We've not had any more reports of issues, and we are currently running OpenID Connect and Microsoft 365 Integration 4.1.3 (2022112815).

bbusschots-mu avatar Feb 13 '24 10:02 bbusschots-mu