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

Slurpd Multi-LDBM replication bug. (ITS#1365)



This is a multi-part message in MIME format.

------=_NextPart_000_00A8_01C14C1D.050BB360
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

Hello, all

     I have tested  the slurpd in multi-LDBM enviroment, and it didn't
work. I set the slapd.conf like=20

database        ldbm
suffix          "dc=3Dyoyo,dc=3Dcom"
rootdn          "cn=3DManager,dc=3Dyoyo,dc=3Dcom"
rootpw          test
directory       /usr/local/var/openldap-yoyo
access to * by * read
index   objectClass   eq
index   uid,cn,FreeIDnumber,FreeCname,FreeEname  eq,sub
replogfile  /usr/local/etc/openldap/replogYoYo.txt
replica host=3Dyoyo3.yoyo.newwayit.com:389
        binddn=3D"cn=3Dreplica,dc=3Dyoyo,dc=3Dcom"
        bindmethod=3Dsimple   credentials=3Dtest

#######################################################################

database        ldbm
suffix          "dc=3Dlolo,dc=3Dcom"
rootdn          "cn=3DManager,dc=3Dlolo,dc=3Dcom"
rootpw          test
directory       /usr/local/var/openldap-lolo
index   objectClass   eq
index   uid,cn,FreeIDnumber,FreeCname,FreeEname  eq,sub
access to * by * read
replogfile  /usr/local/etc/openldap/replogLoLo.txt
replica host=3Dyoyo3.yoyo.newwayit.com:389
        binddn=3D"cn=3Dreplica,dc=3Dlolo,dc=3Dcom"
        bindmethod=3Dsimple   credentials=3Dtest


When I modify the entry under dc=3Dyoyo,dc=3Dcom ,  "replogYoYo.txt" =
appears and slurpd
sense the file exists. But slurpd will do the two replication action as =
cn=3Dreplica,dc=3Dyoyo,dc=3Dcom
and cn=3Dreplica,dc=3Dlolo,dc=3Dcom , and the two action are maade to =
the same entry. The entry
is under dc=3Dyoyo,dc=3Dcom  , so when slurpd want to modify the entry =
under dc=3Dlolo,dc=3Dcom  it
will be reject because the entry is not exist.

Next, I modify the entry under dc=3Dyoyo,dc=3Dcom,  "replogLoLo.txt" =
also appears but this time=20
slurpd can't sense the file, so there are no action be taken by the =
slurpd. All relpication log are=20
still keep in  replogLoLo.txt , just like it didn't exist.

Some oone told me change the second replica command to =
host=3Dyoyo3.yoyo.newwayit.com cause
the slapd use the host string as key, but the problem now is not slapd =
but the slurpd. I run slurpd
with -d 255 , and see it configure with two replica instructions well. =
What's the problem is ?=20




=20








Marco Chen  =20
     marco.chen@newwayit.com
     skidrow@im.mgt.ncu.edu.tw
     skidruw@ms15.hinet.net
     http://www.mgt.ncu.edu.tw/~skidrow/

#-----------------------------------------------



------=_NextPart_000_00A8_01C14C1D.050BB360
Content-Type: text/html;
	charset="big5"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Hello, all
 
     I have tested the slurpd = in=20 multi-LDBM enviroment, and it didn't
work. I set the slapd.conf like 
 
database       =20 ldbm
suffix         =20 "dc=3Dyoyo,dc=3Dcom"
rootdn       &=
nbsp; =20 "cn=3DManager,dc=3Dyoyo,dc=3Dcom"
rootpw     =     =20 test
directory      =20 /usr/local/var/openldap-yoyo
access to * by * = read
index  =20 objectClass   eq
index  =20 uid,cn,FreeIDnumber,FreeCname,FreeEname  eq,sub
replogfile  = /usr/local/etc/openldap/replogYoYo.txt
replica=20 host=3Dyoyo3.yoyo.newwayit.com:389
      = ; =20 binddn=3D"cn=3Dreplica,dc=3Dyoyo,dc=3Dcom"
    &nb=
sp;  =20 bindmethod=3Dsimple   credentials=3Dtest
 
################################################################= #######
 
database       =20 ldbm
suffix         =20 "dc=3Dlolo,dc=3Dcom"
rootdn       &=
nbsp; =20 "cn=3DManager,dc=3Dlolo,dc=3Dcom"
rootpw     =     =20 test
directory      =20 /usr/local/var/openldap-lolo
index   = objectClass  =20 eq
index   uid,cn,FreeIDnumber,FreeCname,FreeEname =20 eq,sub
access to * by * read
replogfile =20 /usr/local/etc/openldap/replogLoLo.txt
replica=20 host=3Dyoyo3.yoyo.newwayit.com:389
      = ; =20 binddn=3D"cn=3Dreplica,dc=3Dlolo,dc=3Dcom"
    &nb=
sp;  =20 bindmethod=3Dsimple   credentials=3Dtest
 
When I modify the entry under dc=3Dyoyo,dc=3Dcom = , =20 "replogYoYo.txt" appears and slurpd
sense the file exists. But slurpd will do the two = replication=20 action as cn=3Dreplica,dc=3Dyoyo,dc=3Dcom
and cn=3Dreplica,dc=3Dlolo,dc=3Dcom , and the two = action are maade=20 to the same entry. The entry
is under dc=3Dyoyo,dc=3Dcom  , so when slurpd want to modify = the entry=20 under dc=3Dlolo,dc=3Dcom  it
will be reject because the entry is not exist.
 
Next, I modify the entry under dc=3Dyoyo,dc=3Dcom,  = "replogLoLo.txt" also=20 appears but this time 
slurpd can't sense the file, so there are no action be taken by the = slurpd.=20 All relpication log are 
still keep in  replogLoLo.txt , just like it didn't = exist.
 
Some oone told me change the second replica command to=20 host=3Dyoyo3.yoyo.newwayit.com cause
the slapd use the host string as key, but the problem now is not = slapd but=20 the slurpd. I run slurpd
with -d 255 , and see it configure with two replica instructions = well.=20 What's the problem is ? 
 
 
 

 

 
 
 
 
 
 
Marco Chen   
     marco.chen@newwayit.com
&n=
bsp;   =20 skidrow@im.mgt.ncu.edu.tw    =20 skidruw@ms15.hinet.net
&nbs=
p;   =20 http://www.mgt.ncu.edu.tw/~s= kidrow/
 
#-----------------------------------------------
 
 

------=_NextPart_000_00A8_01C14C1D.050BB360--