[imp] Preferences not working with updated PEAR

Jan Schneider janmailing@gmx.de
Tue, 11 Sep 2001 11:44:05 +0200


Zitat von Giovanni Meneghetti <gmeneghetti@infvic.it>:

> I've done the "make install" on pear directory.
> 
> In horde/config/horde.php:
> $conf['auth']['driver'] = 'imap';
> $conf['auth']['params'] = array();
> $conf['auth']['params']['server'] = 'server.domain.com';
> $conf['auth']['params']['port'] = '143';
> $conf['auth']['params']['protocol'] = 'imap';

You don't need this if you have the auth/login settings in registry.php as 
listed below.
 
> $conf['prefs']['driver'] = 'sql';
> $conf['prefs']['params'] = array();
> $conf['prefs']['params']['phptype'] = 'mysql';
> $conf['prefs']['params']['hostspec'] = 'localhost';
> $conf['prefs']['params']['username'] = 'hordemgr';
> $conf['prefs']['params']['password'] = 'XXX';
> $conf['prefs']['params']['database'] = 'horde';
> $conf['prefs']['params']['table'] = 'horde_prefs';
> 
> ----
> In horde/config/registry.php
> $this->registry['auth']['login'] = 'imp';
> $this->registry['auth']['logout'] = 'imp';
> 
> IMP 2.3.7-cvs
> PHP Version 4.0.8-dev

We already have a 4.0.8 tree? Perhaps you should try the latest 4.0.7 branch 
that should be php_4_0_7RC2. It might be something is broken in latest HEAD 
tree. And you can leave pear as it is with this release.

> Linux 2.4.3-mdk
> 
> table horde_users has fields : user_id and user_pass.
> table horde_prefs has fields : pref_uid, pref_scope, pref_name,
> pref_value.

You don't need the horde_users table with you auth/login setup.

> Does anyone have an idea what the problem is?

Everything looks fine with your setup (besides the php 4.0.8 stuff). Can you 
look at you db tables are there any prefs stored?

Jan.