class Net::LDAP::AuthAdapter

Public Class Methods

[](name) click to toggle source
# File lib/net/ldap/auth_adapter.rb, line 12
def self.[](name)
  a = @adapters[name]
  if a.nil?
    raise Net::LDAP::AuthMethodUnsupportedError, "Unsupported auth method (#{name})"
  end
  return a
end
new(conn) click to toggle source
# File lib/net/ldap/auth_adapter.rb, line 20
def initialize(conn)
  @connection = conn
end
register(names, adapter) click to toggle source
# File lib/net/ldap/auth_adapter.rb, line 4
def self.register(names, adapter)
  names = Array(names)
  @adapters ||= {}
  names.each do |name|
    @adapters[name] = adapter
  end
end

Public Instance Methods

bind() click to toggle source
# File lib/net/ldap/auth_adapter.rb, line 24
def bind
  raise "bind method must be overwritten"
end