Method: Net::LDAP#encryption

Defined in:
lib/net/ldap.rb

#encryption(args) ⇒ Object

Convenience method to specify encryption characteristics for connections to LDAP servers. Called implicitly by #new and #open, but may also be called by user code if desired. The single argument is generally a Hash (but see below for convenience alternatives). This implementation is currently a stub, supporting only a few encryption alternatives. As additional capabilities are added, more configuration values will be added here.

This method is deprecated.



623
624
625
626
627
# File 'lib/net/ldap.rb', line 623

def encryption(args)
  warn "Deprecation warning: please give :encryption option as a Hash to Net::LDAP.new"
  return if args.nil?
  @encryption = normalize_encryption(args)
end