Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions test/integration/test_bind.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,25 @@ def test_bind_tls_with_valid_hostname_default_opts_passes
@ldap.get_operation_result.inspect
end

def test_bind_tls_with_valid_hostname_no_tls_options_passes
@ldap.host = 'localhost'
@ldap.encryption(
method: :start_tls,
)
assert @ldap.bind(BIND_CREDS),
@ldap.get_operation_result.inspect
end

def test_bind_tls_with_valid_hostname_empty_tls_options_passes
@ldap.host = 'localhost'
@ldap.encryption(
method: :start_tls,
tls_options: {},
)
assert @ldap.bind(BIND_CREDS),
@ldap.get_operation_result.inspect
end

def test_bind_tls_with_valid_hostname_just_verify_peer_ca_passes
@ldap.host = 'localhost'
@ldap.encryption(
Expand Down