Module: Devise::Models::AdGroup

Extended by:
ActiveSupport::Concern
Includes:
AdObject
Defined in:
lib/devise_active_directory_authenticatable/models/ad_group.rb

Overview

Active Directory Module, responsible for validating the user credentials via Active Directory

Defined Under Namespace

Modules: ClassMethods

Constant Summary

Constants included from AdObject

AdObject::Logger

Instance Method Summary collapse

Methods included from AdObject

#ad_obj, #attr_map, #copy_from_activedirectory!, #klass, #update_children, #update_membership, #update_memberships, #update_parents

Instance Method Details

#find_all_childrenObject



17
18
# File 'lib/devise_active_directory_authenticatable/models/ad_group.rb', line 17

def find_all_children
end

#find_all_members(type = :all) ⇒ Object

Remember to check for cycles in the graph BFS or DFS?



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/devise_active_directory_authenticatable/models/ad_group.rb', line 22

def find_all_members type = :all
  case type
    when :all

    when :users

    when :groups

    else
      throw "Invalid argument"
  end
end

#find_all_parentsObject

Remember to check for cycles in the graph BFS or DFS?



14
15
# File 'lib/devise_active_directory_authenticatable/models/ad_group.rb', line 14

def find_all_parents
end