Commit de794b6a77dba50a76e79538797ce2873c1e8700
1 parent
e54b457e
Exists in
spb-stable
and in
2 other branches
Add scoping to ldap lookup when only dn given
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/gitlab/ldap/adapter.rb
@@ -44,7 +44,8 @@ module Gitlab | @@ -44,7 +44,8 @@ module Gitlab | ||
44 | def users(field, value) | 44 | def users(field, value) |
45 | if field.to_sym == :dn | 45 | if field.to_sym == :dn |
46 | options = { | 46 | options = { |
47 | - base: value | 47 | + base: value, |
48 | + scope: Net::LDAP::SearchScope_BaseObject | ||
48 | } | 49 | } |
49 | else | 50 | else |
50 | options = { | 51 | options = { |