mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 04:26:08 +10:00
Merge branch 'fix-work-with-multibyte-chars-in-ldap-uid' into 'master'
Add support of multibyte characters in LDAP UID See merge request !1472
This commit is contained in:
@@ -14,7 +14,7 @@ module Gitlab
|
||||
# LDAP distinguished name is case-insensitive
|
||||
identity = ::Identity.
|
||||
where(provider: provider).
|
||||
where('lower(extern_uid) = ?', uid.downcase).last
|
||||
where('lower(extern_uid) = ?', uid.mb_chars.downcase.to_s).last
|
||||
identity && identity.user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user