Project

General

Profile

Bug #19416 » auth_source_ldap.rb.patch

Karli Sjöberg, 05/17/2017 04:35 PM

View differences:

/usr/local/share/foreman/app/models/auth_sources/auth_source_ldap.rb 2017-05-17 22:13:51.158422000 +0200
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'rbconfig'
require 'net/ldap'
require 'timeout'
......
def encryption_config
return nil unless tls
{ :method => :simple_tls, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_PEER } }
if RbConfig::CONFIG['host_os'] =~ /freebsd/i
{ :method => :simple_tls, :tls_options => { :ca_file => "/usr/local/etc/ssl/cert.pem", :verify_mode => OpenSSL::SSL::VERIFY_PEER } }
else
{ :method => :simple_tls, :tls_options => { :verify_mode => OpenSSL::SSL::VERIFY_PEER } }
end
end
def ldap_con(login = nil, password = nil)
    (1-1/1)