Skip to content
Snippets Groups Projects
Commit e82b37a6 authored by Петров Роман's avatar Петров Роман
Browse files

Add support of multibyte characters in LDAP UID

parent 34431d8e
No related branches found
No related tags found
No related merge requests found
Loading
@@ -14,7 +14,7 @@ module Gitlab
Loading
@@ -14,7 +14,7 @@ module Gitlab
# LDAP distinguished name is case-insensitive # LDAP distinguished name is case-insensitive
identity = ::Identity. identity = ::Identity.
where(provider: provider). where(provider: provider).
where('lower(extern_uid) = ?', uid.downcase).last where('lower(extern_uid) = ?', uid.mb_chars.downcase.to_s).last
identity && identity.user identity && identity.user
end end
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment