[horde] LDAP error!!

Anthony wai at tech-trans.com
Wed Dec 4 18:17:00 PST 2002


Hi

I d/l the lastest CVS of horde and configure it work.
However I had some problem about LDAP.
In the ~/horde/config/conf.php,
I changed the LDAP prefs like as follow.
-----------------------------------------
$conf['prefs']['driver'] = 'ldap';
$conf['prefs']['params']['hostspec'] = '172.25.25.25';
$conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['basedn'] = 'o=abc';
$conf['prefs']['params']['uid'] = 'mail';
/*
 * The following is valid but would only be necessary if users
 * do NOT have permission to modify their own ldap accounts.
 */
$conf['prefs']['params']['rootdn'] = 'cn=administrator, o=abc';
$conf['prefs']['params']['username'] = 'administrator';
$conf['prefs']['params']['password'] = 'password';
----------------------------------------------------------

It WORKED!!

But I enable User to edit their own account (access to * by self write) in
the slapd.conf.
So I comment the last 3 lines in the above configuration.

However It made Horde DID NOT WORK!! The error is:
----------------------------------------------------------------------------
--------
Notice: Undefined offset: 0 in /var/www/html/horde/lib/Prefs/ldap.php on
line 399

Warning: Wrong datatype for second argument in call to array_key_exists in
/var/www/html/horde/lib/Prefs/ldap.php on line 399
----------------------------------------------------------------------------
---------


Why???

Thanks!!



More information about the horde mailing list