Module: ActiveDirectory

Defined in:
lib/active_directory/user.rb,
lib/active_directory.rb,
lib/active_directory/base.rb,
lib/active_directory/group.rb,
lib/active_directory/member.rb,
lib/active_directory/version.rb,
lib/active_directory/computer.rb,
lib/active_directory/container.rb,
lib/active_directory/field_type/date.rb,
lib/active_directory/field_type/binary.rb,
lib/active_directory/field_type/dn_array.rb,
lib/active_directory/field_type/password.rb,
lib/active_directory/field_type/timestamp.rb,
lib/active_directory/attributes/group_type.rb,
lib/active_directory/field_type/user_dn_array.rb,
lib/active_directory/field_type/group_dn_array.rb,
lib/active_directory/field_type/member_dn_array.rb,
lib/active_directory/attributes/sam_account_type.rb

Overview

– license

Based on original code by Justin Mecham and James Hunt
at http://rubyforge.org/projects/activedirectory

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.

++ license

Defined Under Namespace

Modules: FieldType, GroupType, Member, SamAccountType Classes: Base, Computer, Container, Group, SID, User

Constant Summary collapse

VERSION =
"1.6.1.1"
@@special_fields =
{
   #All objects in the AD
  :Base => {
    :objectguid => :Binary,
    :whencreated => :Date,
    :whenchanged => :Date,
    :memberof => :DnArray,
  },
   #User objects
  :User => {
    :objectguid => :Binary,
    :whencreated => :Date,
    :whenchanged => :Date,
    :objectsid => :Binary,
    :msexchmailboxguid => :Binary,
    :msexchmailboxsecuritydescriptor => :Binary,
    :lastlogontimestamp => :Timestamp,
    :pwdlastset => :Timestamp,
    :accountexpires => :Timestamp,
    :memberof => :MemberDnArray,
  },
   #Group objects
  :Group => {
    :objectguid => :Binary,
    :whencreated => :Date,
    :whenchanged => :Date,
    :objectsid => :Binary,
    :memberof => :GroupDnArray,
    :member => :MemberDnArray,
  },
   #Computer objects
  :Computer => {
    :objectguid => :Binary,
    :whencreated => :Date,
    :whenchanged => :Date,
    :objectsid => :Binary,
    :memberof => :GroupDnArray,
    :member => :MemberDnArray,
  },
}

Class Method Summary collapse

Class Method Details

.special_fieldsObject

Special Fields



43
44
45
# File 'lib/active_directory.rb', line 43

def self.special_fields
  @@special_fields
end

.special_fields=(sp_fields) ⇒ Object



47
48
49
# File 'lib/active_directory.rb', line 47

def self.special_fields= sp_fields
  @@special_fields = sp_fields
end