- 
    Bug 
- 
    Resolution: Done
- 
    Undefined 
- 
    None
- 
        False
- 
        
- 
        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
- links to
