mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Merge branch 'ldap_block_fix' of /home/git/repositories/gitlab/gitlabhq into 6-2-stable
This commit is contained in:
@@ -78,7 +78,7 @@ module Gitlab
|
||||
# * when ldap account was deactivated by change of OU membership in 'dn'
|
||||
def blocked?(dn)
|
||||
ldap = OmniAuth::LDAP::Adaptor.new(ldap_conf)
|
||||
ldap.connection.search(base: dn, size: 1).blank?
|
||||
ldap.connection.search(base: dn, scope: Net::LDAP::SearchScope_BaseObject, size: 1).blank?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user