Commit b4b6447b authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge pull request #6857 from bytheway/master

Add scoping to ldap lookup when only dn given
parents e4c8e8fd de794b6a
...@@ -44,7 +44,8 @@ module Gitlab ...@@ -44,7 +44,8 @@ module Gitlab
def users(field, value) def users(field, value)
if field.to_sym == :dn if field.to_sym == :dn
options = { options = {
base: value base: value,
scope: Net::LDAP::SearchScope_BaseObject
} }
else else
options = { 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