summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-30 07:16:45 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-08-30 07:16:45 +0000
commit14f5199cdcd9a84bdd273b24ba8d8f2eb9f60c23 (patch)
treec3b92e307179a44b198b9279a17d5091777ae8ba /lib
parentcb71b26353b4b3d927e20678b6f26c50c7d7b7c2 (diff)
parent0d5ae2802e887dcd95fe537a59450a2c0f548382 (diff)
downloadgitlab-ce-14f5199cdcd9a84bdd273b24ba8d8f2eb9f60c23.tar.gz
Merge branch 'feature-ldap-tests' into 'master'
Feature ldap tests Move specs to proper places. Relates to #154 This is already mergeable, will continue in a new branch for additions & refactorings. See merge request !1053
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ldap/adapter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/adapter.rb b/lib/gitlab/ldap/adapter.rb
index ca239bea884..68ac1b22909 100644
--- a/lib/gitlab/ldap/adapter.rb
+++ b/lib/gitlab/ldap/adapter.rb
@@ -86,7 +86,8 @@ module Gitlab
end
def dn_matches_filter?(dn, filter)
- ldap_search(base: dn, filter: filter, scope: Net::LDAP::SearchScope_BaseObject, attributes: %w{dn}).any?
+ ldap_search(base: dn, filter: filter,
+ scope: Net::LDAP::SearchScope_BaseObject, attributes: %w{dn}).any?
end
def ldap_search(*args)