Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3593

Make sure username and email attributes are lower cased when fetching their values from LDAP object [GHI#43254]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      ldap

      Describe the bug

      The change in https://github.com/keycloak/keycloak/pull/43128/files#diff-077cb88ca55b51b490d15d0884ac0983a22b056c7d60609ab49e09d238e0b189R286 is not making sure that username and email attributes are lower-cased when fetching values from LDAP.

      Version

      26.4

      Regression

      [ ] The issue is a regression

      Expected behavior

      Username and email are always in lower case.

      Actual behavior

      Username and email are not in lowercase.

      How to Reproduce?

      Run org.keycloak.testsuite.federation.ldap.LDAPProvidersIntegrationTest#caseInsensitiveSearch and check the username returned from the UserModel when building the representation.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core IAM
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: