6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/13/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6518] Possible format failure in dn (export in ldif)
*
Your Email Address
*
Spam protection
Enter the letters below:
. . .. ..___. , |\/| || |[__ \./ | |\__||__|[___ |
Comment
> If the name containing an Umlaut, then the exported ldif data looks like: > > > > dn: cn=SGVyYmVydCBNw7xzdGVybWFubg==,mail=herbert@linuxhacker.at > > > > I think, it should be: > > > > dn:: Y249SGVyYmVydCBNw7xzdGVybWFubmhlcmJlcnRAbGludXhoYWNrZXIuYXQ= > > > > This patch works for me: > > > > --- lib/Data/ldif.php.orig1 2008-03-22 13:24:49.000000000 +0100 > > +++ lib/Data/ldif.php 2008-03-22 13:55:50.000000000 +0100 > > @@ -192,26 +192,20 @@ > > // Store cn and mail separately for use in record dn > > if > (!$this->_is_safe_string($row[$mozillaTurbaMap[$value]])) { > > $recordData .= $value . ':: ' . > base64_encode($row[$mozillaTurbaMap[$value]]) ."\n"; > > - if ($value == 'cn') { > > - $recordCn = > base64_encode($row[$mozillaTurbaMap[$value]]); > > - } > > - if ($value == 'mail') { > > - $recordMail = > base64_encode($row[$mozillaTurbaMap[$value]]); > > - } > > } else { > > $recordData .= $value . ': ' . > $row[$mozillaTurbaMap[$value]] ."\n"; > > - if ($value == 'cn') { > > - $recordCn = $row[$mozillaTurbaMap[$value]]; > > - } > > - if ($value == 'mail') { > > - $recordMail = $row[$mozillaTurbaMap[$value]]; > > - } > > } > > } > > } > > > > - $export .= 'dn: cn=' . $recordCn . ',mail=' . $recordMail . "\n" > > - . "objectclass: top\n" > > + $dn = 'cn=' . $row[$mozillaTurbaMap['cn']] . > $row[$mozillaTurbaMap['mail']]; > > + if (!($this->_is_safe_string($row[$mozillaTurbaMap['cn']]) && > > + $this->_is_safe_string($row[$mozillaTurbaMap['cn']]))) { > > + $export .= 'dn:: ' . base64_encode($dn) . "\n"; > > + } else { > > + $export .= 'dn: ' . $dn . "\n"; > > + } > > + $export .= "objectclass: top\n" > > . "objectclass: person\n" > > . "objectclass: organizationalPerson\n" > > . "objectclass: inetOrgPerson\n" > > > >
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