chaltron 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chaltron/ldap/connection.rb +10 -10
- data/lib/chaltron/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52359234f98454549db88ec7d86a85060f5e802f7db976fbde8dcfa5901df79d
|
4
|
+
data.tar.gz: 9e3707b9e3c24174f6bd5054ff48dbb9b928dfd1a9b79599a660f0d99dc3a75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f765fe682ed4c2aa2fd33a4a0356323b0c15d9026d9c145b3b30550dea5f717acc3b73b37ab8a1e741fb5cbe751b768561a466a7a50a6182b584873be56cdc8
|
7
|
+
data.tar.gz: ee2248ea33675f782bd672666b2abb968846db97d71437adb5487e4b86288a4227d553b38d160102738183a2b694789b4ef85d7c790ecd91c37005eea501b2aa
|
@@ -132,16 +132,16 @@ module Chaltron
|
|
132
132
|
method = translate_method
|
133
133
|
return unless method
|
134
134
|
|
135
|
-
opts = if options[:
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
135
|
+
opts = if options[:disable_verify_certificates]
|
136
|
+
# It is important to explicitly set verify_mode for two reasons:
|
137
|
+
# 1. The behavior of OpenSSL is undefined when verify_mode is not set.
|
138
|
+
# 2. The net-ldap gem implementation verifies the certificate hostname
|
139
|
+
# unless verify_mode is set to VERIFY_NONE.
|
140
|
+
{ verify_mode: OpenSSL::SSL::VERIFY_NONE }
|
141
|
+
else
|
142
|
+
# Dup so we don't accidentally overwrite the constant
|
143
|
+
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.dup
|
144
|
+
end
|
145
145
|
|
146
146
|
opts.merge!(custom_tls_options)
|
147
147
|
|
data/lib/chaltron/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chaltron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicvega
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|