public function prepareObjectInformation(array &$info)
{
if (!$this->exists()) {
if (!isset($info[self::ATTRIBUTE_CN])) {
if (!isset($info[self::ATTRIBUTE_SN]) || !isset($info[self::ATTRIBUTE_GIVENNAME])) {
throw new Horde_Kolab_Server_Exception("Either the last name or the given name is missing!");
} else {
$info[self::ATTRIBUTE_CN] = $this->generateCn($info);
}
}
}
}