Sha256: d9d053722eae5dfd72583b4d0c21b0044bb00c40aed4de0a7ea3c4c6e83c8177

Contents?: true

Size: 601 Bytes

Versions: 7

Compression:

Stored size: 601 Bytes

Contents

class Group < ActiveLdap::Base
  ldap_mapping :dn_attribute => "cn",
               :classes => ['posixGroup']
  # Inspired by ActiveRecord, this tells ActiveLDAP that the
  # LDAP entry has a attribute which contains one or more of
  # some class |:class_name| where the attributes name is
  # |:local_key|. This means that it will call
  # :class_name.new(value_of(:local_key)) to create the objects.
  has_many :members, :class => "User", :wrap => "memberUid"
  has_many :primary_members, :class => 'User',
           :foreign_key => 'gidNumber',
           :primary_key => 'gidNumber'
end # Group

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
activeldap-0.10.0 examples/objects/group.rb
activeldap-0.9.0 examples/objects/group.rb
activeldap-1.0.0 examples/objects/group.rb
activeldap-1.0.2 examples/objects/group.rb
activeldap-1.0.1 examples/objects/group.rb
ruby-activeldap-0.8.3.1 examples/objects/group.rb
ruby-activeldap-0.8.2 examples/objects/group.rb