Commit de794b6a77dba50a76e79538797ce2873c1e8700

Authored by Ben Bytheway
1 parent e54b457e

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 44 def users(field, value)
45 45 if field.to_sym == :dn
46 46 options = {
47   - base: value
  47 + base: value,
  48 + scope: Net::LDAP::SearchScope_BaseObject
48 49 }
49 50 else
50 51 options = {
... ...