Module: ActiveDirectory

Defined in:
lib/bsb_active_directory/user.rb,
lib/bsb_active_directory.rb,
lib/bsb_active_directory/base.rb,
lib/bsb_active_directory/group.rb,
lib/bsb_active_directory/member.rb,
lib/bsb_active_directory/version.rb,
lib/bsb_active_directory/computer.rb,
lib/bsb_active_directory/container.rb,
lib/bsb_active_directory/field_type/date.rb,
lib/bsb_active_directory/field_type/binary.rb,
lib/bsb_active_directory/field_type/dn_array.rb,
lib/bsb_active_directory/field_type/password.rb,
lib/bsb_active_directory/field_type/timestamp.rb,
lib/bsb_active_directory/attributes/group_type.rb,
lib/bsb_active_directory/field_type/user_dn_array.rb,
lib/bsb_active_directory/field_type/group_dn_array.rb,
lib/bsb_active_directory/field_type/member_dn_array.rb,
lib/bsb_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'.freeze
@@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,
    whencreate: :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



42
43
44
# File 'lib/bsb_active_directory.rb', line 42

def self.special_fields
  @@special_fields
end

.special_fields=(sp_fields) ⇒ Object



46
47
48
# File 'lib/bsb_active_directory.rb', line 46

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