class ActiveLdap::Adapter::Ldap

def prepare_connection(options={})

def prepare_connection(options={})
  operation(options) do
    @connection.set_option(LDAP::LDAP_OPT_PROTOCOL_VERSION, 3)
    @ldap_follow_referrals = follow_referrals?(options) ? 1 : 0
    @connection.set_option(LDAP::LDAP_OPT_REFERRALS,
                           @ldap_follow_referrals)
  end
end