Skip to content

Commit 79aefff

Browse files
committed
Skip cert verification for test
cc @jch as I'm unsure if we want to go this route or make the cert verifiable instead
1 parent 2e3e77b commit 79aefff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/test_bind.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def test_bind_fail
2121
end
2222

2323
def test_bind_tls
24-
@ldap.encryption(method: :start_tls, tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS)
24+
tls_options = OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.merge(:verify_mode => OpenSSL::SSL::VERIFY_NONE)
25+
@ldap.encryption(method: :start_tls, tls_options: tls_options)
2526
assert @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: "passworD1"), @ldap.get_operation_result.inspect
2627
end
2728
end

0 commit comments

Comments
 (0)