Skip to content

LDAP email address downcasing

Drew Blessing requested to merge dblessing/gitlab-ce:fix_email_downcasing into master

Fixes #2960 (closed)

In the event we cannot match an LDAP user by DN we attempt to find an identity by email address and then update the DN. In this case the identity is matched by email address.

If the user's email address in LDAP has an upper case character we cannot find a match in the GitLab database. GitLab downcases emails before the user object is saved.

This merge request downcases the email from LDAP before we lookup by email. I also added a test to prevent a regression.

Merge request reports