[horde] LDAP prefs + horde 2.2.1

Francois Gouvernet francois.gouvernet at univ-rouen.fr
Tue Mar 25 07:02:56 PST 2003


Hello,

I would like to use LDAP to store Horde preferences. I use openLDAP 2.0.27
horde2.2.1, imp 3.2.1.
So I use in my ldap schema the hordePerson objectclass as given in
horde.schema.
Here is the ldap schema:

dc=univ-rouen, dc=fr
ou=people
ou=Etudiants

I have a manager entry:

dn: cn=Manager, dc=univ-rouen, dc=fr
objectClass: organizationalRole
cn: Manager

a student entry is like:

dn: uid=toto, ou=Etudiants, ou=people, dc=univ-rouen, dc=fr
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: hordePerson
uid: toto
cn:...
sn:...

I modify the horde.php file as below.

$conf['prefs']['driver'] = 'ldap';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['port'] = '389';
$conf['prefs']['params']['basedn'] =
'ou=Etudiants,ou=people,dc=univ-rouen,dc=fr';
$conf['prefs']['params']['uid'] = 'uid';
$conf['prefs']['params']['rootdn'] = 'cn=Manager,dc=univ-rouen,dc=fr';
$conf['prefs']['params']['username'] = 'Manager';
$conf['prefs']['params']['password'] = 'password';


As I connect I have the following messages:

Warning: Invalid argument supplied for foreach() in
/usr/local/apache-1.3.27/htdocs/horde-2.2.1/lib/Prefs/ldap.php on line 378

Warning: ldap_mod_replace(): Modify: No such object in
/usr/local/apache-1.3.27/htdocs/horde-2.2.1/lib/Prefs/ldap.php on line 464

Warning: Cannot modify header information - headers already sent by (output
started at /usr/local/apache-1.3.27/htdocs/horde-2.2.1/lib/Prefs/ldap.php:378)
in /usr/local/apache-1.3.27/htdocs/horde-2.2.1/imp-3.2.1/redirect.php on line
103

what can be wrong?

Thank's

Francois Gouvernet
University of Rouen  


More information about the horde mailing list