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

LDAP data mapping to user profile fields doesn't work if shortnames have upper case letters

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide
      1. Create a custom profile field (e.g. "Affiliation") with a shortname containing upper case letters (e.g. "eduPersonPrimaryAffiliation").
      2. Create a custom profile field (e.g. "Address") with a shortname containing just lower case letters (e.g. "address").
      3. Define a mapping at LDAP (or similar) auth plugin settings for these fields.
      4. Set update condition to "On every login".
      5. Log in via the mapped auth method as an existing user with a value for the mapped fields.
      6. Confirm that the profile fields have been set to the expected value.

      Note: It is important to test an existing user. Mapping will succeed on user creation even without the patch.

      Show
      Create a custom profile field (e.g. "Affiliation") with a shortname containing upper case letters (e.g. "eduPersonPrimaryAffiliation"). Create a custom profile field (e.g. "Address") with a shortname containing just lower case letters (e.g. "address"). Define a mapping at LDAP (or similar) auth plugin settings for these fields. Set update condition to "On every login". Log in via the mapped auth method as an existing user with a value for the mapped fields. Confirm that the profile fields have been set to the expected value. Note: It is important to test an existing user. Mapping will succeed on user creation even without the patch.
    • Workaround:
      Hide

      Use only lower case letters for shortnames of user profile fields.

      Show
      Use only lower case letters for shortnames of user profile fields.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      wip-MDL-49189-master

      Description

      The mapping of data from the LDAP server to custom profile fields doesn't work, if the custom profile field shortname contains upper case letters. Other external authentication providers such as Shibboleth are also affected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kwiliarty Kevin Wiliarty
              Reporter:
              eberhardt Jan Eberhardt
              Peer reviewer:
              Mark Nelson
              Integrator:
              Dan Poltawski
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/15