summaryrefslogtreecommitdiff
path: root/lib/gitlab/ldap/dn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ldap/dn.rb')
-rw-r--r--lib/gitlab/ldap/dn.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ldap/dn.rb b/lib/gitlab/ldap/dn.rb
index 60e2ba96587..234de1fe7eb 100644
--- a/lib/gitlab/ldap/dn.rb
+++ b/lib/gitlab/ldap/dn.rb
@@ -108,6 +108,7 @@ module Gitlab
yield key.string.strip, value.string.rstrip
key = StringIO.new
value = StringIO.new;
+ when '+' then raise(UnsupportedDnFormatError, "Multivalued RDNs are not supported")
else value << char
end
when :value_normal_escape then
@@ -133,6 +134,7 @@ module Gitlab
yield key.string.strip, value.string # Don't strip trailing escaped space!
key = StringIO.new
value = StringIO.new;
+ when '+' then raise(UnsupportedDnFormatError, "Multivalued RDNs are not supported")
else value << char
end
when :value_quoted then