Skip to content

Net::LDAP.new deprecation warning #100

Description

@tkanov

When encryption parameter is passed as String to Net::LDAP.new

ldap_options = {
  ...
  encryption: 'ssl',
}
ldap = GitHub::Ldap.new ldap_options

it produces the following deprecation warning
Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new

At present, the encryption value must be a Hash with parameters, which consists of two keys:
method: - :simple_tls or :start_tls
tls_options: - Hash of options for that method

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions