Sha256: 6276b1023f115e9306aa5dc9874310d60273ec1457a458508fb7f64f79fc4db7
Contents?: true
Size: 881 Bytes
Versions: 5
Compression:
Stored size: 881 Bytes
Contents
module Ixtlan module Models class GroupUser include DataMapper::Resource def self.default_storage_name "GroupUser" end # dn_prefix { |group_user| "cn=#{group_user.group.name}" } #treebase "ou=groups" # multivalue_field :memberuid #ldap_properties do |group_user| # {:cn=>"#{group_user.group.name}", :objectclass => "posixGroup"} # end property :memberuid, String, :key => true property :gidnumber, Integer, :key => true def group Object.full_const_get(Models::GROUP).get!(gidnumber) end def group=(group) gidnumber = group.id end def user Object.full_const_get(Models::USER).first(:login => memberuid) end def user=(user) memberuid = user.login end end end end
Version data entries
5 entries across 5 versions & 1 rubygems