File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ def capabilities
245
245
def check_encryption ( encryption , tls_options = { } )
246
246
return unless encryption
247
247
248
+ tls_options ||= { }
248
249
case encryption . downcase . to_sym
249
250
when :ssl , :simple_tls
250
251
{ method : :simple_tls , tls_options : tls_options }
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ def test_tls_validation
45
45
@ldap . check_encryption ( :tls , verify_mode : OpenSSL ::SSL ::VERIFY_NONE ) )
46
46
assert_equal ( { method : :start_tls , tls_options : { cert_store : "some/path" } } ,
47
47
@ldap . check_encryption ( :tls , cert_store : "some/path" ) )
48
+ assert_equal ( { method : :start_tls , tls_options : { } } ,
49
+ @ldap . check_encryption ( :tls , nil ) )
48
50
end
49
51
50
52
def test_search_delegator
You can’t perform that action at this time.
0 commit comments