diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-09-18 09:13:45 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-10-07 20:28:12 +0300 |
commit | a3ec58dacf0d390512144d79c8972de2c41fc60b (patch) | |
tree | 8997404a0fe374d1e78186621ea3844686d5ccf5 /lib | |
parent | 4ae32d9577d63e95c7d924cb72cce2e7b8fbdf47 (diff) |
Downcase normalized LDAP DNs and UIDs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ldap/person.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/person.rb b/lib/gitlab/ldap/person.rb index 267514d0fcd..d2d6aedba0f 100644 --- a/lib/gitlab/ldap/person.rb +++ b/lib/gitlab/ldap/person.rb @@ -100,7 +100,7 @@ module Gitlab private def self.normalize_dn_part(part) - cleaned = part.strip + cleaned = part.strip.downcase if cleaned.ends_with?('\\') # If it ends with an escape character that is not followed by a |