root/conf/ldap_shadows/worlds/MilkyPond/shadows/Administration/plugins/objects/individual.rb @ 4b490148
|
|
def self.hook_before_create(item)
|
|
unless item.attribute_present?('cn')
|
|
cn = item.surname || ""
|
|
cn = item.givenName + " " + cn if item.givenName
|
|
item.cn = cn
|
|
end
|
|
end
|
|
|