# File lib/active_ldap/adapter/base.rb, line 41 def connect(options={}) host = options[:host] || @host method = options[:method] || @method || :plain port = options[:port] || @port || ensure_port(method) method = ensure_method(method) @disconnected = false @connection, @uri, @with_start_tls = yield(host, port, method) prepare_connection(options) bind(options) end