root/lib/cyborghood/objects/ldap.rb @ 78a20655
78a20655 | Marc Dequenes | ||
class LdapDnsDomain < ActiveLdap::Base
|
|||
ldap_mapping :dn_attribute => 'cn', :prefix => '', :classes => ['genericDomain']
|
|||
def managers
|
|||
list = self.manager
|
|||
return [] if list.nil?
|
|||
return list.collect{|dn| dn.to_s } if list.is_a? Array
|
|||
return [list.to_s]
|
|||
end
|
|||
end
|
|||
class LdapPerson < ActiveLdap::Base
|
|||
ldap_mapping :dn_attribute => 'uid', :prefix => '', :classes => ['person', 'extInetOrgPerson']
|
|||
end
|