chaltron 0.3.0 → 0.3.1
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feb9d3687e946213e897ae9bbb835b14fc1214cf29df029fdd91b2ab6b2a0000
|
4
|
+
data.tar.gz: b9e6f8b0cff8e15793598694c3329402c887e4ef616d41b9ca932d1901134354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342e278cad529b9ff1f649a789d7830eb3ef213b3bd238e0e505e62a173a89cf3c8712918420fa619e5cc69636bf485c3dc16ff3f87693058e0cb3eedf432f46
|
7
|
+
data.tar.gz: baa4a5d33f03abd750dcc3be2b065fb05cd8694ca34ffa679ee8260ded3d968a68790585154b6d1598580a2c69ada24bb77995c549014e5bf52b05f33040c573
|
@@ -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: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vicvega
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -505,7 +505,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
505
505
|
- !ruby/object:Gem::Version
|
506
506
|
version: '0'
|
507
507
|
requirements: []
|
508
|
-
rubygems_version: 3.0.
|
508
|
+
rubygems_version: 3.0.3
|
509
509
|
signing_key:
|
510
510
|
specification_version: 4
|
511
511
|
summary: Move faster and break things - revisited for rails 4
|