Commit d9c0ecdc authored by Marin Jankovski's avatar Marin Jankovski

Add scope to dn filter.

parent 47c0b4b1
......@@ -108,7 +108,7 @@ module Gitlab
end
def dn_matches_filter?(dn, filter)
ldap_search(base: dn, filter: filter, attributes: %w{dn}).any?
ldap_search(base: dn, filter: filter, scope: Net::LDAP::SearchScope_BaseObject, attributes: %w{dn}).any?
end
def ldap_search(*args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment