Module: Devise
- Defined in:
- lib/devise_active_directory_authenticatable.rb,
lib/devise_active_directory_authenticatable/strategy.rb,
lib/devise_active_directory_authenticatable/models/ad_user.rb,
lib/devise_active_directory_authenticatable/models/ad_group.rb,
lib/devise_active_directory_authenticatable/models/ad_object.rb
Overview
Get ldap information from config/ldap.yml now
Defined Under Namespace
Modules: AdObject, Models, Strategies
Constant Summary collapse
- @@ad_settings =
{ :host => 'domain-controller.example.local', :base => 'dc=example,dc=local', :port => 636, :encryption => :simple_tls, :auth => { :method => :simple } }
- @@ad_attr_mapping =
{ #Attribute mapping for user object :AdUser => { #Attributes are lowercase :objectguid => :objectguid, #Required :username => :userprincipalname, :dn => :dn, :firstname => :givenName, :lastname => :sn, :whenchanged => :whenchanged, :whencreated => :whencreated, }, #Attribute mapping for group objects :AdGroup => { #Attributes are lowercase :objectguid => :objectguid, #Required :dn => :dn, :name => :name, :description => :description, :whencreated => :whencreated, :whenchanged => :whenchanged, } }
- @@ad_username =
:userprincipalname
- @@ad_create_user =
true
- @@ad_logger =
true
- @@ad_update_users =
true
- @@ad_update_groups =
true
- @@ad_update_group_memberships =
true
- @@ad_update_user_memberships =
true
- @@ad_caching =
true
Instance Method Summary collapse
-
#ad_caching ⇒ Object
Enable Active Directory caching.
-
#ad_update_group_memberships ⇒ Object
Update the group memberships from the AD, this uses the ancestory gem.
-
#ad_update_groups ⇒ Object
Update the group object from the AD.
-
#ad_update_user_memberships ⇒ Object
Update the user memberships from the AD.
-
#ad_update_users ⇒ Object
Update the user object from the AD.
Instance Method Details
#ad_caching ⇒ Object
Enable Active Directory caching. This speeds up group/membership queries significantly.
86 |
# File 'lib/devise_active_directory_authenticatable.rb', line 86 mattr_accessor :ad_caching |
#ad_update_group_memberships ⇒ Object
Update the group memberships from the AD, this uses the ancestory gem
78 |
# File 'lib/devise_active_directory_authenticatable.rb', line 78 mattr_accessor :ad_update_group_memberships |
#ad_update_groups ⇒ Object
Update the group object from the AD
74 |
# File 'lib/devise_active_directory_authenticatable.rb', line 74 mattr_accessor :ad_update_groups |
#ad_update_user_memberships ⇒ Object
Update the user memberships from the AD
82 |
# File 'lib/devise_active_directory_authenticatable.rb', line 82 mattr_accessor :ad_update_user_memberships |
#ad_update_users ⇒ Object
Update the user object from the AD
70 |
# File 'lib/devise_active_directory_authenticatable.rb', line 70 mattr_accessor :ad_update_users |