<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>(whitespace-)trimming of mapped attributes</title> 
  <pubDate>Fri, 10 Apr 2026 10:04:42 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5979</link> 
  <atom:link rel="self" type="application/rss+xml" title="(whitespace-)trimming of mapped attributes" href="https://bugs.horde.org/ticket/5979/rss" /> 
  <description>(whitespace-)trimming of mapped attributes</description> 
 
   
   
  <item> 
   <title>Mapping attributes from multiple hash values can generate hi</title> 
   <description>Mapping attributes from multiple hash values can generate hideous results if some of the attributes are not set. Example:



&#039;name&#039; =&gt; array(&#039;fields&#039; =&gt; array(&#039;firstname&#039;, &#039;lastname&#039;),

                          &#039;format&#039; =&gt; &#039;%s %s&#039;, 

                          &#039;attribute&#039; =&gt; &#039;cn&#039;),



If firstname is not set, cn becomes &quot; Lastname&quot;  with a leading space.



Would be nice if mapped attributes get trimmed afterwards, maybe even on multiple whitespaces within the string. Yes, there cannot be a general trim rule, but maybe another map parameter just for the (common?) whitespace separation?</description> 
   <pubDate>Sun, 09 Dec 2007 14:11:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5979#t39629</link> 
  </item> 
   
  <item> 
   <title>This happens already. Where exactly do you see this *not* ha</title> 
   <description>This happens already. Where exactly do you see this *not* happening? And in case this has been implemented after RC1, did you try a recent snaphot?</description> 
   <pubDate>Mon, 10 Dec 2007 11:07:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5979#t39654</link> 
  </item> 
   
  <item> 
   <title>horde-FRAMEWORK_3-2007-12-11

horde-HEAD-2007-12-11

turba-H</title> 
   <description>horde-FRAMEWORK_3-2007-12-11

horde-HEAD-2007-12-11

turba-HEAD-2007-12-11



$attributes just before adding to LDAP at horde/turba/lib/Driver/ldap.php:266 error_log and print_r for new contact with only lastname (and email)

Array

(   

    [DUFFtype] =&gt; Object

    [cn] =&gt;  Lastname         &lt;-- &quot; Lastname&quot; with leading space

    [sn] =&gt; Lastname

    [mail] =&gt; xxx@a.com

[SNIP]



ldapsearch results in:

cn:: IExhc3RuYW1l     &lt;-- &quot; Lastname&quot; with leading space (base64)

sn: Lastname

</description> 
   <pubDate>Tue, 11 Dec 2007 17:59:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5979#t39707</link> 
  </item> 
   
  <item> 
   <title>Can you try if the following commit fixed it:

http://cvs.ho</title> 
   <description>Can you try if the following commit fixed it:

http://cvs.horde.org/diff.php/turba/lib/Driver.php?r1=1.175&amp;r2=1.176&amp;ty=u</description> 
   <pubDate>Fri, 14 Dec 2007 01:13:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5979#t39874</link> 
  </item> 
   
  <item> 
   <title>yes, works

Thanks!</title> 
   <description>yes, works

Thanks!</description> 
   <pubDate>Fri, 14 Dec 2007 20:13:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5979#t39934</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
