6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6517] Export to ldif - data has no cn attribute
*
Your Email Address
*
Spam protection
Enter the letters below:
. ,.__ . .. .._. \./ [__)|__||\/| | | | | || |_|_
Comment
> The exported ldif data has no valid cn attribute. This data, imported > in Mozilla Thunderbird, has no correct display name. Example: > > > > dn: cn=,mail=herbert@linuxhacker.at > > > > should be: > > > > dn: cn=Straub Herbert,mail=herbert@linuxhacker.at > > > > This patch works for me: > > > > --- 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. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers