Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-09-18 09:13:45 +0300
committerMichael Kozono <mkozono@gmail.com>2017-10-07 20:28:12 +0300
commita3ec58dacf0d390512144d79c8972de2c41fc60b (patch)
tree8997404a0fe374d1e78186621ea3844686d5ccf5 /lib
parent4ae32d9577d63e95c7d924cb72cce2e7b8fbdf47 (diff)
Downcase normalized LDAP DNs and UIDs
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ldap/person.rb2
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