root/conf/ldap_shadows/shadows/MilkyPond/hooks/objects/individual.rb @ bbe89518
7b832340 | Marc Dequènes (Duck) | ||
def self.hook_before_create(shadow, item)
|
|||
unless item.attribute_present?('cn')
|
|||
cn = item.surname || ""
|
|||
cn = item.givenName + " " + cn if item.givenName
|
|||
item.cn = cn
|
|||
end
|
|||
end
|