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

Re: slapd-meta Example Config ?




Pierangelo Masarati wrote:
you may use cvsweb at http://www.openldap.org/devel/cvsweb.cgi
to automatically generate nice (colored) diff, e.g.

http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-meta/config.c.diff?r1=1.15&r2=1.17&hideattic=1&sortbydate=0&f=h
http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/url.c.diff?r1=1.71&r2=1.73&hideattic=1&sortbydate=0&f=h
http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/ldap-int.h.diff?r1=1.141&r2=1.142&hideattic=1&sortbydate=0&f=h

great, cvsweb is a very userfriendly tool !

So 2nd test, with no dn in the replica :
$ /etc/init.d/ldap_meta_head start
...
line 87 (uri
"ldap://ldaptux.int-evry.fr:9006/dc=int-evry,dc=fr
ldap://localhost:389";)
/etc/openldap/slapd_meta.conf: line 87: <naming context> of URI does not
resolve to a backend in "uri <protocol>://<server>[:port]/<naming
context>" line
slapd stopped.

This is another problem; apparently your meta database does not have a "dc=int-evry,dc=fr" suffix.

Yes, of course !, I made a mistake Here's my corrected slapd.conf:

database        meta
suffix          "dc=meta,dc=fr"
uri           "ldap://localhost:9003/dc=get-telecom,dc=meta,dc=fr";
suffixmassage "dc=get-telecom,dc=meta,dc=fr" "dc=get-telecom,dc=fr"

uri           "ldap://localhost:9003/dc=enstb,dc=meta,dc=fr";
suffixmassage "dc=enstb,dc=meta,dc=fr" "dc=enstb,dc=fr"

uri "ldap://ldaptux.int-evry.fr:9006/dc=int-evry,dc=metat,dc=fr ldap://localhost:389";
suffixmassage "dc=int-evry,dc=meta,dc=fr" "dc=int-evry,dc=fr"


And now it works fine :-)

$ ldapsearch -x sn=Lau* -b "dc=meta,dc=fr" -h localhost -p 9003

I can shutdown ldaptux.int-evry.fr:9006, then my ldapsearch goes through ldap://localhost:389 :-) -> replica is working .

Just let us know when this will be integrated in a stable release .

Next I will try to play with map attributes and rewrite rules ...

Thanks a lot .