Skip to content

Commit 8d9568d

Browse files
author
Jerry Cheung
committed
failing integration test for start_tls
1 parent 18fcec2 commit 8d9568d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/integration/test_bind.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ def test_bind_anonymous_fail
1919
def test_bind_fail
2020
refute @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: "not my password"), @ldap.get_operation_result.inspect
2121
end
22+
23+
def test_bind_tls
24+
@ldap.encryption(method: :start_tls, tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS)
25+
assert @ldap.bind(method: :simple, username: "uid=user1,ou=People,dc=rubyldap,dc=com", password: "passworD1"), @ldap.get_operation_result.inspect
26+
end
2227
end

0 commit comments

Comments
 (0)