# 2008-03-22 Herbert Straub # Construct the cn attribute from firstname and lastname # Details see http://www.linuxhacker.at # --- lib/Data/ldif.php.orig 2008-03-22 13:07:21.000000000 +0100 +++ lib/Data/ldif.php 2008-03-22 13:13:48.000000000 +0100 @@ -182,6 +182,10 @@ $recordData = ''; $recordCn = ''; $recordMail = ''; + // Straub construct name from firstname and lastname + if (!array_key_exists('name', $row)) { + $row['name'] = sprintf("%s %s", $row['firstname'], $row['lastname']); + } foreach ($this->_mozillaAttr as $value) { if (isset($row[$mozillaTurbaMap[$value]])) { // Base64 encode each value as necessary and store it.