summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-09-20 15:29:45 -0700
committerMichael Kozono <mkozono@gmail.com>2017-10-07 10:28:13 -0700
commit7e3eb257babed7317a90e0ad62ca810108e28646 (patch)
tree25ffd2d612f98885f376ac0532d489a1fab1283c
parentf610fea7771f09067c5ee76468d07e217794934e (diff)
downloadgitlab-ce-7e3eb257babed7317a90e0ad62ca810108e28646.tar.gz
Fix for null DN
-rw-r--r--lib/gitlab/ldap/dn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/dn.rb b/lib/gitlab/ldap/dn.rb
index f62d36101c4..60e2ba96587 100644
--- a/lib/gitlab/ldap/dn.rb
+++ b/lib/gitlab/ldap/dn.rb
@@ -202,7 +202,7 @@ module Gitlab
# Returns the DN as an array in the form expected by the constructor.
def to_a
a = []
- self.each_pair { |key, value| a << key << value }
+ self.each_pair { |key, value| a << key << value } unless @dn.empty?
a
end