Hi, I need to connect my replica to a sync provider via an intermediate slapd configured with back-meta. My goal is to use the rewrite/map functions of back-meta. But I find that slapd crashes each time the replica is started. May be back-meta does not support LDAP controls ? or LDAP partial responses ? Does any one have an experience with this ?
I precise that I cannot use the RWM overlay for many reasons : -The RWM overlay has to be installed in the remote sync provider server that is managed by another team. -the overlay is incompatible with the other uses of that server. -The overlay is still experimental but back-meta is not. -And finally, when I configure the overlay on my test server (by simply adding the line "overlay rwm" in the config) slapd crashes each time I make an LDAP search ! (I'm using OpenLdap 2.4.13).
I do not send an issue (ITS) for theses crashes because I think that I'm not using a standard feature of slapd.
Can any one help me ?
Thanks & best regards
Ali
----- "ali pouya" ali.pouya@free.fr wrote:
Hi, I need to connect my replica to a sync provider via an intermediate slapd configured with back-meta. My goal is to use the rewrite/map functions of back-meta. But I find that slapd crashes each time the replica is started. May be back-meta does not support LDAP controls ? or LDAP partial responses ? Does any one have an experience with this ?
Please file an ITS (assuming you're using a recent version of OpenLDAP; otherwise first try with the latest 2.4).
I precise that I cannot use the RWM overlay for many reasons : -The RWM overlay has to be installed in the remote sync provider server that is managed by another team. -the overlay is incompatible with the other uses of that server. -The overlay is still experimental but back-meta is not.
IMHO (as one of the developers of both) they have the same level of "experimental". If you find any documentation that states differently, please point me to them, because they need to be fixed.
-And finally, when I configure the overlay on my test server (by simply adding the line "overlay rwm" in the config) slapd crashes each time I make an LDAP search ! (I'm using OpenLdap 2.4.13).
OK, good for the version. Please file a separate ITS for slapo-rwm(5) crash (unless it is related to ITS#5923; you can tell by running re24 from the CVS, or I can guess if you send a stack backtrace of the crash).
I do not send an issue (ITS) for theses crashes because I think that I'm not using a standard feature of slapd.
Please do. In fact your use of those features is non-standard, but: 1) the crashes are not nice at all 2) OpenLDAP is intended to support non-standard features as well
Can any one help me ?
:)
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
Hi Pierangelo, Thanks for your rapid and efficient answers. Below you find my answers.
1) In the slapo-rwm man page I read : "This overlay is experimental." But in the slapd-meta man page there is no such text. So I thought that the rwm feature in this backend is stable.
2) For the crash of the overlay rwm you are right. It is now fixed. I encountered exactly the problem explained in ITS 5923 and fixed in RE24.
3) For the crash of back-meta the diagnostic is very simple : back-meta does not recocnize the LDAP_RES_INTERMEDIATE response type. So it provokes a crash by asserting (0) in the line 1460 of ./back-meta/search.c in release 2.4.13, giving the follwing message :
read1msg: ld 0x9f29550 msgid 2 message type intermediate slapd: search.c:1460: meta_back_search: Assertion `0' failed. Abandon
I will submit an issue on this topic next week after testing with RE24.
Best Regards Ali
ali.pouya@free.fr wrote:
Hi Pierangelo, Thanks for your rapid and efficient answers. Below you find my answers.
- In the slapo-rwm man page I read : "This overlay is experimental." But in the slapd-meta man page there is no such text. So I thought that the
rwm feature in this backend is stable.
Thanks, I'll remove that message. Right now, I think they have roughly the same level of stability, as any feature/bug fix is consistently applied to both.
- For the crash of the overlay rwm you are right. It is now fixed. I
encountered exactly the problem explained in ITS 5923 and fixed in RE24.
:)
- For the crash of back-meta the diagnostic is very simple : back-meta does
not recocnize the LDAP_RES_INTERMEDIATE response type. So it provokes a crash by asserting (0) in the line 1460 of ./back-meta/search.c in release 2.4.13, giving the follwing message :
read1msg: ld 0x9f29550 msgid 2 message type intermediate slapd: search.c:1460: meta_back_search: Assertion `0' failed. Abandon I will submit an issue on this topic next week after testing with RE24.
That's correct: back-meta does not handle that response; probably back-ldap does not handle it either. Yes, please, file an ITS (for back-meta suffices, I'll check if it affects other backends and other response codes).
Please note that even though this bug gets fixed, there's no guarantee that sync replication works over back-meta. I suggest you file separate bugs for not handling the intermediate response and for sync replication over back-meta, if it doesn't work after the missing feature is implemented.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
openldap-technical@openldap.org