[dev] Today's little ldap schema witch project and a horde.schema diff.

Jon Parise jon@horde.org
Sun, 14 Apr 2002 11:41:45 -0400


On Thu, Apr 11, 2002 at 06:10:28AM -0700, Edwin Culp wrote:

> That is the work around that I have been using and is is very icky.
> 
> What aboutthe equivalent of line +- 305 in turba/lib/ldap.php
> $attributes = array_filter($attributes, array($this, 'cleanEmptyAttributes'));
>     function cleanEmptyAttributes($var)
>     {
>         if (!is_array($var)) {
>             return ($var != '');
>         } else {
>             foreach ($var as $v) {
>                 return($v != '');
>             }
>         }
>     }
> 
> while building the dirtyPrefs array arround line 285 in 
> horde/lib/Prefs/ldap.php.  I was looking at that yesterday and feel like
> it would work just by not including the prefs leaving the ldap directory
> as before with no value, which is what I think we are after.  AFAIK,
> this is why turba and erase attributes.
 
This still wouldn't allow for storing an empty string in the LDAP
directory.

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member