Re: N-way multimaster replication problem

Néher Márton <[email protected]> Sun, 25 Apr 2010 17:36:01 +0200
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
--0016e6567e8eea93c50485116ab7
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Actually I solved the problem meanwhile by using FQDNs (altough i don't
really see why is it important on a local-network) and trailing slashes jus=
t
as you have suggested.

The version is exactly:
$ slapd -VV
@(#) $OpenLDAP: slapd 2.4.21 (Apr 15 2010 11:38:12) $
    buildd@yellow:/build/buildd/openldap-2.4.21/debian/build/servers/slapd

2010/4/25 Jonathan Clarke <[email protected]>

> Hi,
>
> Le 25/04/2010 00:40, N=E9her M=E1rton a =E9crit :
>
>> Okay, i found the bug.
>> It was about the olcServerID.
>> My cn=3Dconfig showed olcServerID: 1 ldap://alpha-int/, olcServerID: 2
>> ldap://beta-int/, which is correct.
>> But if I start my openldap as ubuntu says (/usr/sbin/slapd -h
>> ldap://beta-int/ ldap://127.0.0.1:389/ <http://127.0.0.1:389/> ldapi:///
>>
>> -g openldap -u openldap -F /etc/ldap/slapd.d/), it does not recognise
>> that he is beta-int. Only if I start it with only the ldap://beta-int/
>> parameter. But I really need the other two interfaces as well.
>> What can I do now with it?
>>
>
> What version of OpenLDAP are you using?
>
> A bug similar to this was corrected in 2.4.18:
> http://www.openldap.org/its/?findid=3D5942
>
> If you're using an older version, this should still work fine so long as
> the URL in the -h option to slapd exactly matched the URL in serverID (ma=
ke
> sure the all slashes are present, etc).
>
> Preferably, use the latest release, though, to avoid other such bugs now
> fixed :)
>
> Jonathan
>
>  2010/4/24 N=E9her M=E1rton <[email protected]
>> <mailto:[email protected]>>
>>
>>
>>    Hi,
>>
>>    I have just set up openldap on two nodes (alpha, beta). I am using
>>    openldap for a passdb backend for samba.
>>    I followed this guide:
>>
>> http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Maste=
r
>>
>>    To a point, everything seems to work just fine, the cn=3Dconfig
>>    replication works both ways.
>>    After deleting everything from my base, I run smbldap-populate on
>>    the node alpha.
>>    It creates the default users, groups pretty fine, but it failed to
>>    replicat to node beta.
>>
>>    the log entries shows this on alpha:
>>    http://pastebin.com/Ykhvq4BY
>>
>>    on the other node the log shows this on beta:
>>    http://pastebin.com/KNwgHQDW
>>
>>    My configuration looks the following:
>>
>>    cn=3Dconfig:
>>    http://pastebin.com/mT5A4K5i
>>
>>    olcDatabase=3D{0}config,cn=3Dconfig:
>>    http://pastebin.com/kwBNEaeV
>>
>>    olcDatabase=3D{0}hdb,cn=3Dconfig:
>>    http://pastebin.com/FsPaKK90
>>
>>    I have the olcOverlay=3D{0}syncprov,olcDatabase=3D{0}config,cn=3Dconf=
ig
>>    and olcOverlay=3D{0}syncprov,olcDatabase=3D{1}hdb,cn=3Dconfig set to
>>    olcOverlay: {0}syncprov
>>
>>    I have nothing in slapd.conf
>>    Do you know where to search this problem? What other logs should i
>>    attach to figure it out?
>>
>>    Have a nice day,
>>    Best Regards,
>>    Marton, Neher
>>
>>
>>
>
> --
> --------------------------------------------------------------
> Jonathan Clarke - [email protected]
> --------------------------------------------------------------
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
> --------------------------------------------------------------
>

--0016e6567e8eea93c50485116ab7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Actually I solved the problem meanwhile by using FQDNs (altough i don&#39;t=
 really see why is it important on a local-network) and trailing slashes ju=
st as you have suggested.<br><br>The version is exactly:<br>$ slapd -VV<br>
@(#) $OpenLDAP: slapd 2.4.21 (Apr 15 2010 11:38:12) $<br>=A0=A0=A0 buildd@y=
ellow:/build/buildd/openldap-2.4.21/debian/build/servers/slapd<br><br><div =
class=3D"gmail_quote">2010/4/25 Jonathan Clarke <span dir=3D"ltr">&lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt;</span=
><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Le 25/04/2010 00:40, N=E9her M=E1rton a =E9crit :<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>
Okay, i found the bug.<br>
It was about the olcServerID.<br>
My cn=3Dconfig showed olcServerID: 1 ldap://alpha-int/, olcServerID: 2<br>
ldap://beta-int/, which is correct.<br>
But if I start my openldap as ubuntu says (/usr/sbin/slapd -h<br></div>
ldap://beta-int/ ldap://<a href=3D"http://127.0.0.1:389/" target=3D"_blank"=
>127.0.0.1:389/</a> &lt;<a href=3D"http://127.0.0.1:389/" target=3D"_blank"=
>http://127.0.0.1:389/</a>&gt; ldapi:///<div class=3D"im"><br>
-g openldap -u openldap -F /etc/ldap/slapd.d/), it does not recognise<br>
that he is beta-int. Only if I start it with only the ldap://beta-int/<br>
parameter. But I really need the other two interfaces as well.<br>
What can I do now with it?<br>
</div></blockquote>
<br>
What version of OpenLDAP are you using?<br>
<br>
A bug similar to this was corrected in 2.4.18:<br>
<a href=3D"http://www.openldap.org/its/?findid=3D5942" target=3D"_blank">ht=
tp://www.openldap.org/its/?findid=3D5942</a><br>
<br>
If you&#39;re using an older version, this should still work fine so long a=
s the URL in the -h option to slapd exactly matched the URL in serverID (ma=
ke sure the all slashes are present, etc).<br>
<br>
Preferably, use the latest release, though, to avoid other such bugs now fi=
xed :)<br>
<br>
Jonathan<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>
2010/4/24 N=E9her M=E1rton &lt;<a href=3D"mailto:[email protected]" ta=
rget=3D"_blank">[email protected]</a><br></div>
&lt;mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">nehe=
[email protected]</a>&gt;&gt;<div><div></div><div class=3D"h5"><br>
<br>
 =A0 =A0Hi,<br>
<br>
 =A0 =A0I have just set up openldap on two nodes (alpha, beta). I am using<=
br>
 =A0 =A0openldap for a passdb backend for samba.<br>
 =A0 =A0I followed this guide:<br>
 =A0 =A0<a href=3D"http://www.openldap.org/doc/admin24/replication.html#N-W=
ay%20Multi-Master" target=3D"_blank">http://www.openldap.org/doc/admin24/re=
plication.html#N-Way%20Multi-Master</a><br>
<br>
 =A0 =A0To a point, everything seems to work just fine, the cn=3Dconfig<br>
 =A0 =A0replication works both ways.<br>
 =A0 =A0After deleting everything from my base, I run smbldap-populate on<b=
r>
 =A0 =A0the node alpha.<br>
 =A0 =A0It creates the default users, groups pretty fine, but it failed to<=
br>
 =A0 =A0replicat to node beta.<br>
<br>
 =A0 =A0the log entries shows this on alpha:<br>
 =A0 =A0<a href=3D"http://pastebin.com/Ykhvq4BY" target=3D"_blank">http://p=
astebin.com/Ykhvq4BY</a><br>
<br>
 =A0 =A0on the other node the log shows this on beta:<br>
 =A0 =A0<a href=3D"http://pastebin.com/KNwgHQDW" target=3D"_blank">http://p=
astebin.com/KNwgHQDW</a><br>
<br>
 =A0 =A0My configuration looks the following:<br>
<br>
 =A0 =A0cn=3Dconfig:<br>
 =A0 =A0<a href=3D"http://pastebin.com/mT5A4K5i" target=3D"_blank">http://p=
astebin.com/mT5A4K5i</a><br>
<br>
 =A0 =A0olcDatabase=3D{0}config,cn=3Dconfig:<br>
 =A0 =A0<a href=3D"http://pastebin.com/kwBNEaeV" target=3D"_blank">http://p=
astebin.com/kwBNEaeV</a><br>
<br>
 =A0 =A0olcDatabase=3D{0}hdb,cn=3Dconfig:<br>
 =A0 =A0<a href=3D"http://pastebin.com/FsPaKK90" target=3D"_blank">http://p=
astebin.com/FsPaKK90</a><br>
<br>
 =A0 =A0I have the olcOverlay=3D{0}syncprov,olcDatabase=3D{0}config,cn=3Dco=
nfig<br>
 =A0 =A0and olcOverlay=3D{0}syncprov,olcDatabase=3D{1}hdb,cn=3Dconfig set t=
o<br>
 =A0 =A0olcOverlay: {0}syncprov<br>
<br>
 =A0 =A0I have nothing in slapd.conf<br>
 =A0 =A0Do you know where to search this problem? What other logs should i<=
br>
 =A0 =A0attach to figure it out?<br>
<br>
 =A0 =A0Have a nice day,<br>
 =A0 =A0Best Regards,<br>
 =A0 =A0Marton, Neher<br>
<br>
<br>
</div></div></blockquote><font color=3D"#888888">
<br>
<br>
-- <br>
--------------------------------------------------------------<br>
Jonathan Clarke - <a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
--------------------------------------------------------------<br>
Ldap Synchronization Connector (LSC) - <a href=3D"http://lsc-project.org" t=
arget=3D"_blank">http://lsc-project.org</a><br>
--------------------------------------------------------------<br>
</font></blockquote></div><br>

--0016e6567e8eea93c50485116ab7--