Commit 47c0b4b1 authored by Marin Jankovski's avatar Marin Jankovski

Add scoping to ldap lookup.

parent fdfcf01a
......@@ -74,7 +74,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