Commit de794b6a authored by Ben Bytheway's avatar Ben Bytheway

Add scoping to ldap lookup when only dn given

parent e54b457e
......@@ -44,7 +44,8 @@ module Gitlab
def users(field, value)
if field.to_sym == :dn
options = {
base: value
base: value,
scope: Net::LDAP::SearchScope_BaseObject
}
else
options = {
......
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