Revision e04ae9bc
Added by Marc Dequènes almost 16 years ago
- ID e04ae9bcb42fea89f17e0de9f58efc6c8a737346
lib/ldap_shadows/object.rb | ||
---|---|---|
|
||
OPERATIONAL_ATTRIBUTES = ['creatorsName', 'createTimestamp', 'modifiersName', 'modifyTimestamp', 'structuralObjectClass', 'entryUUID']
|
||
|
||
# temporary method until active_ldap is fixed: return a DN object (see #23932)
|
||
# temporary method until active_ldap is fixed: return a DN object (see activeldap#23932)
|
||
def dn_obj
|
||
ActiveLdap::DistinguishedName.parse(self.dn)
|
||
end
|
||
|
||
# temporary method until active_ldap is fixed: return a DN object (see activeldap#23932)
|
||
def self.base_obj
|
||
ActiveLdap::DistinguishedName.parse(self.base)
|
||
end
|
||
|
||
def self.find(*args)
|
||
obj_stuff = super(*args)
|
||
if obj_stuff.is_a? Array
|
||
... | ... | |
value = @data[real_name] || []
|
||
next unless self.class.blank_value?(value)
|
||
|
||
# Duck: workaround for #26720 (not sure it works in all cases)
|
||
# workaround for activeldap#26720 (not sure it works in all cases)
|
||
next unless @initial_attribute_list.nil? or @initial_attribute_list.include?(real_name)
|
||
|
||
_schema ||= schema
|
Also available in: Unified diff
[evol] 'create' action now ask for a location (which icurrently s a parent object)