Class: Adauth::AdObjects::Folder

Inherits:
Adauth::AdObject show all
Defined in:
lib/adauth/ad_objects/folder.rb

Overview

Active Directory OU Object

Inherits from Adauth::AdObject

Constant Summary collapse

Fields =

Field mapping

Maps methods to LDAP fields e.g.

:foo => :bar

Becomes

Computer.name

Which calls .name on the LDAP object

{
    :name => :name
}
ObjectFilter =

Object Net::LDAP filter

Used to restrict searches to just this object

Net::LDAP::Filter.eq("objectClass", "top")

Class Method Summary collapse

Methods inherited from Adauth::AdObject

add_object_filter, all, #cn_groups_nested, #delete, #dn_ous, filter, #groups, #handle_field, #initialize, #is_a_member?, #ldap_object, #members, #method_missing, method_missing, #modify, #ous, reverse_field, where

Constructor Details

This class inherits a constructor from Adauth::AdObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Adauth::AdObject

Class Method Details

.rootObject

Returns the Domain Object which is useful for building domain maps.



28
29
30
# File 'lib/adauth/ad_objects/folder.rb', line 28

def self.root
  self.new(Adauth.connection.search(:filter => Net::LDAP::Filter.eq("objectClass", "Domain")).first)
end