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

allowemailaddresses should be case insensitive

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. As admin go to Site administration -> Plugins -> Authentication -> Manage authentication
      2. Add 'example.com .moodle.com' to 'Allowed email domains' list and Save Changes
      3. Logout as admin
      4. Create a new user account with email = 'something@EXAMPLE.COM' and Save changes.
        • Check new user has been created.
      5. Create a new user account with email = 'something@example.MOODLE.COM' and Save changes.
        • Check new user has been created.
      6. Create a new user account with email = 'something@something.com' and Save changes.
        • Check new user has not been created.
      7. As admin, go to Site administration -> Plugins -> Authentication -> Manage authentication
      8. Remove 'Allowed email domains' list
      9. Add 'example.com .moodle.com' to 'Denied email domains' list and Save Changes
      10. Logout as admin
      11. Create a new user account with email = 'something2@EXAMPLE.COM' and Save changes.
        • Check new user has not been created.
      12. Create a new user account with email = 'something2@example.MOODLE.COM' and Save changes.
        • Check new user has not been created.
      13.  Create a new user account with email = 'something2@something.com' and Save changes.
        • Check new user has been created.

       

      Show
      As admin go to Site administration -> Plugins -> Authentication -> Manage authentication Add 'example.com .moodle.com' to 'Allowed email domains' list and Save Changes Logout as admin Create a new user account with email = 'something@EXAMPLE.COM' and Save changes. Check new user has been created. Create a new user account with email = 'something@example.MOODLE.COM' and Save changes. Check new user has been created. Create a new user account with email = 'something@something.com' and Save changes. Check new user has not been created. As admin, go to Site administration -> Plugins -> Authentication -> Manage authentication Remove 'Allowed email domains' list Add 'example.com .moodle.com' to 'Denied email domains' list and Save Changes Logout as admin Create a new user account with email = 'something2@EXAMPLE.COM' and Save changes. Check new user has not been created. Create a new user account with email = 'something2@example.MOODLE.COM' and Save changes. Check new user has not been created.  Create a new user account with email = 'something2@something.com' and Save changes. Check new user has been created.  
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-64385-master

      Description

      In Moodle 3.5.3, it looks like allowemailaddresses checks email domains to be case sensitive.  For example if allowedemailaddresses = domain.com and a user tries to self-register with username@DOMAIN.com, the check will fail.

      Per the following RFC, domain names are case insensitive:

      RFC 1035, section 3.1 (https://tools.ietf.org/html/rfc1035),

      "Name servers and resolvers must compare [domains] in a case-insensitive manner"

       

        Attachments

          Activity

            People

            Assignee:
            amaia Amaia Anabitarte
            Reporter:
            jesse.safran Jesse Safran
            Peer reviewer:
            Sara Arjona (@sarjona)
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Mar/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m