[dev] Patch for LDAP Preferences storage

Jon Parise jon@horde.org
Tue, 14 May 2002 19:28:29 -0400


On Tue, May 14, 2002 at 04:15:29PM -0700, Edwin Culp wrote:

> I tried versions 1.28, 1.29 and 1.30 and they all worked with no problems.
> I went to version 1.31 and can't even get the horde frames.  I did get some
> extra error messages that i haven't really looked at closely, yet.
> 
> Warning: Invalid argument supplied for foreach() in
> /usr/src/horde/lib/Prefs/ldap.php on line 353
> 
> Warning: LDAP: modify operation could not be completed. in
> /usr/src/horde/lib/Prefs/ldap.php on line 438
> 
> Warning: Cannot add header information - headers already sent by (output started
> at /usr/src/horde/lib/Prefs/ldap.php:353) in /usr/src/horde/imp/redirect.php on
> line 94

Try grabbing revision 1.32 of ldap.php.  That should quiet some of
those warnings.

Regardless, it would appear that you haven't updated your LDAP schema
to support the new format.  Have a look at scripts/ldap/horde.schema
for an example, and make sure you define something like this:

    $conf['prefs']['params']['field'] = 'hordePrefs';

... in config/horde.php (it will default to 'hordePrefs'.

Hopefully, that will help things.
 
-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member