Skip to content
Snippets Groups Projects

6 2 stable

Closed gitlab-qa-bot requested to merge 6-2-stable into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -78,7 +78,7 @@ module Gitlab
@@ -78,7 +78,7 @@ module Gitlab
# * when ldap account was deactivated by change of OU membership in 'dn'
# * when ldap account was deactivated by change of OU membership in 'dn'
def blocked?(dn)
def blocked?(dn)
ldap = OmniAuth::LDAP::Adaptor.new(ldap_conf)
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
end
private
private
Loading