Sha256: e6401d0df85c3843813cd98299f74906d54d164974afa59bf49af65818f7b671

Contents?: true

Size: 611 Bytes

Versions: 38

Compression:

Stored size: 611 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_name => "User", :wrap => "memberUid"
  has_many :primary_members, :class_name => 'User',
           :foreign_key => 'gidNumber',
           :primary_key => 'gidNumber'
end # Group

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
activeldap-7.2.1 examples/objects/group.rb
activeldap-7.2.0 examples/objects/group.rb
activeldap-7.0.0 examples/objects/group.rb
activeldap-6.1.0 examples/objects/group.rb
activeldap-6.0.4 examples/objects/group.rb
activeldap-6.0.3 examples/objects/group.rb
activeldap-6.0.2 examples/objects/group.rb
activeldap-6.0.1 examples/objects/group.rb
activeldap-6.0.0 examples/objects/group.rb
activeldap-5.2.4 examples/objects/group.rb
activeldap-5.2.3 examples/objects/group.rb
activeldap-5.2.2 examples/objects/group.rb
activeldap-5.2.1 examples/objects/group.rb
activeldap-5.2.0 examples/objects/group.rb
activeldap-5.1.1 examples/objects/group.rb
activeldap-5.1.0 examples/objects/group.rb
activeldap-3.2.3 examples/objects/group.rb
powerhome-activeldap-3.2.3 examples/objects/group.rb
activeldap-4.0.6 examples/objects/group.rb
activeldap-4.0.5 examples/objects/group.rb