[imp] "Notice: Undefined index: hordeprefs" error

Gonzalo Servat gonzalo@linuxaus.com
10 Jul 2002 10:39:37 +1000


Hi All.

Versions: imp = 3.1, horde = 2.1, Apache = 1.3.26, PHP = 4.2.1

I'm trying to setup Horde to use LDAP as the Prefs driver. I've added
horde.schema to slapd.conf and it's loaded properly.

When I try and login to the IMAP server, it says:

Notice:  Undefined index:  hordeprefs in
/var/www/htdocs/horde/lib/Prefs/ldap.php on line 323
Warning:  Invalid argument supplied for foreach() in
/var/www/htdocs/horde/lib/Prefs/ldap.php on line 329
Warning:  LDAP: modify operation could not be completed. in
/var/www/htdocs/horde/lib/Prefs/ldap.php on line 415
Warning:  Cannot add header information - headers already sent by
(output started at /var/www/htdocs/horde/lib/Prefs/ldap.php:323) in
/var/www/htdocs/horde/imp/redirect.php on line 84

Strange thing is, if I press F5, it will then take me to the Inbox for
that user without any errors.

When logging out, I get:

Warning:  LDAP: modify operation could not be completed. in
/var/www/htdocs/horde/lib/Prefs/ldap.php on line 415

The relevant parts of horde.php:

$conf['auth']['driver'] = 'ldap';
$conf['auth']['params'] = array();
$conf['auth']['params']['hostspec'] = 'ldapserver';
$conf['auth']['params']['port'] = '389';
$conf['auth']['params']['basedn'] = 'c=AU';
$conf['auth']['params']['uid'] = 'uid';

$conf['prefs']['driver'] = 'ldap';
$conf['prefs']['params'] = array();
$conf['prefs']['params']['hostspec'] = 'ldapserver';
$conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['basedn'] = 'c=AU';
$conf['prefs']['params']['uid'] = 'uid';

Any help would be greatly appreciated.

Regards,

Gonzalo.