Project

General

Profile

« Previous | Next » 

Revision c6632e15

Added by Marc Dequènes almost 15 years ago

  • ID c6632e155c14333c0cdb699f96cd8dc8c2c90f95

[evol] add operational attributes in expert mode

View differences:

lib/ldap_shadows/object.rb
ldap_mapping :prefix => '', :classes => ['top'], :scope => :sub
OPERATIONAL_ATTRIBUTES = ['creatorsName', 'createTimestamp', 'modifiersName', 'modifyTimestamp', 'structuralObjectClass', 'entryUUID']
# temporary method until active_ldap is fixed: return a DN object (see #23932)
def dn_obj
ActiveLdap::DistinguishedName.parse(self.dn)
......
end
taken_attr_list += objectclasses_attr_list(self.required_classes + (self.class.presentation[:optional_classes] || []))
end
taken_attr_list += OPERATIONAL_ATTRIBUTES if options[:expert]
taken_attr_list = taken_attr_list.uniq & attr_list
obj_info = fetch_attributes_data(taken_attr_list, options)
attr_list -= taken_attr_list

Also available in: Unified diff