[Date Prev][Date Next] [Chronological] [Thread] [Top]

one slapd to multiple backends LDAP


I'd like to use openldap as proxy LDAP towards 2 servers (for read only).

For exemple :

          |                                                                                  |
ou=pers,dc=univ-nancy2,dc=fr        ou=etudiants,dc=univ-nancy2,dc=fr

Here is my configuration :

database	ldap
uri		ldap://neith.univ-nancy2.fr:395
suffix		"ou=pers,dc=univ-nancy2,dc=fr"

database	ldap
uri		ldap://etumel.univ-nancy2.fr:392
suffix		"ou=etudiants,dc=univ-nancy2,dc=fr"

database        ldbm
suffix          "dc=univ-nancy2,dc=fr"
directory       /home/ldap/ldapProxy/data
index		objectclass        eq

the ldif from suffix dc=univ-nancy2,dc=fr is :

dn: dc=univ-nancy2,dc=fr
objectClass: top
objectClass: domain
dc: univ-nancy2

(only one entry)

If I search :
(uid=vmathieu) with the base ou=pers,dc=univ-nancy2,dc=fr, it works

If I search :
(uid=vmath999) with the base ou=etudiants,dc=univ-nancy2,dc=fr, it works

but, if I search (uid=vmathieu) or (uid=vmath999) with the base dc=univ-nancy2,dc-fr, there is nothing.

openldap Does not make the link beetween the database ldbm and the databases ldap.

How can I do this?



Vincent MATHIEU                 
CRI - Universite NANCY 2            | Email : Vincent.Mathieu@univ-nancy2.fr
Pole Lorrain de Gestion             | Tel   : (33)
13, Rue Michel Ney - C.O. 75        | Fax   : (33)
54013 Nancy Cedex.   FRANCE