Merge pull request #6857 from bytheway/master

Add scoping to ldap lookup when only dn given
This commit is contained in:
Jacob Vosmaer 2014-04-25 10:48:28 +02:00
commit b4b6447b55
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {