Class OmniAuth::LDAP::Adaptor
In: lib/omniauth-ldap/adaptor.rb
Parent: Object

Methods

bind_as   new   validate  

Classes and Modules

Class OmniAuth::LDAP::Adaptor::AuthenticationError
Class OmniAuth::LDAP::Adaptor::ConfigurationError
Class OmniAuth::LDAP::Adaptor::ConnectionError
Class OmniAuth::LDAP::Adaptor::LdapError

Constants

VALID_ADAPTER_CONFIGURATION_KEYS = [ :hosts, :host, :port, :encryption, :disable_verify_certificates, :bind_dn, :password, :try_sasl, :sasl_mechanisms, :uid, :base, :allow_anonymous, :filter, :tls_options, # Deprecated :method, :ca_file, :ssl_version
MUST_HAVE_KEYS = [ :base, [:encryption, :method], # :method is deprecated [:hosts, :host], [:hosts, :port], [:uid, :filter]   A list of needed keys. Possible alternatives are specified using sub-lists.
ENCRYPTION_METHOD = { :simple_tls => :simple_tls, :start_tls => :start_tls, :plain => nil, # Deprecated. This mapping aimed to be user-friendly, but only caused # confusion. Better to pass-through the actual `Net::LDAP` encryption type. :ssl => :simple_tls, :tls => :start_tls, }

Attributes

auth  [R] 
base  [R] 
bind_dn  [RW] 
connection  [R] 
filter  [R] 
password  [RW] 
uid  [R] 

Public Class methods

Public Instance methods

:base => "dc=yourcompany, dc=com",

 :filter => "(mail=#{user})",
 :password => psw

[Validate]