Revision 4b58d4fd
Added by Marc Dequènes over 15 years ago
- ID 4b58d4fd19ee646b78356e72908d4b5a6b4fda28
lib/cyborghood/objects/ldap.rb | ||
---|---|---|
module CyborgHood
|
||
class LdapDnsDomain < ActiveLdap::Base
|
||
ldap_mapping :dn_attribute => 'cn', :prefix => '', :classes => ['genericDomain']
|
||
|
||
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]
|
||
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
|
||
end
|
||
|
||
class LdapPerson < ActiveLdap::Base
|
||
ldap_mapping :dn_attribute => 'uid', :prefix => '', :classes => ['person', 'extInetOrgPerson']
|
||
class LdapPerson < ActiveLdap::Base
|
||
ldap_mapping :dn_attribute => 'uid', :prefix => '', :classes => ['person', 'extInetOrgPerson']
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
[evol] move new classes into CyborgHood module and add new exception handling