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

Re: sycreplica cant work ?

On Wednesday 09 November 2005 00:51, William wrote:

BTW, choose a better subject next time ... syncrepl works very well, maybe you 
can't get it to work, but that doesn't mean it can't work ...

> HI, all
> To test syncreplica, i installed 2 opendldap2.3.11 on my PC,
> one is listening on port 389 and the other 999,
> and i have set slapd.conf as following:
> Provider:
> overlay syncprov
> 	syncprov-checkpoint 100 10
> 	syncprov-sessionlog 100

What is the suffix of this database? What database backend is it using (bdb or 

> Consumer:
> syncrepl rid=110
>      provider=ldap://localhost
>      type=refreshAndPersist
>      interval=00:00:00:60
>      retry="10 +"
>      searchbase="siemensLAC=010,dc=ctc,dc=com"
>      scope=sub
>      sizelimit=0
>      timelimit=0
>      schemachecking=off
>      bindmethod=simple
>      binddn="cn=admin,o=users,dc=com"
>      credentials=aaa
> then start provider & consumer:
> 	#/usr/local/openldap/libexec/slapd &
> 	#/usr/local/openldap2/libexec/slapd -h ldap://localhost:999 &
> search the provider is OK:
> 	ldapsearch -b "dc=ctc,dc=com" -D "cn=admin,o=users,dc=com" -x -w aaa

You aren't using the "searchbase" from above ...

Can you see the entryUUID and entryCSN attributes of all the entries?

ldapsearch -b "siemensLAC=010,dc=ctc,dc=com" -D "cn=admin,o=users,dc=com" -x 
-w aaa entryUUDI entryCSN


Can you see the contextCSN attribute of the database itself:

ldapsearch -b "siemensLAC=010,dc=ctc,dc=com" -D "cn=admin,o=users,dc=com" -x 
-w aaa -s base contextCSN


> but when i modified some data of provider, the consumer seemed not
> be synchronized. i caputrued packages by etheral, it shows that when
> consumer sends search message, provider gives back "noSuchObject" (error
> code 0x20) .

I always wonder why people pull ethereal out first when the problems can 
usually be found more easily in the logs ...

Ensure you have sufficient logging set up on the provider so that you can see 
the searches from the consumer, then run the same (exactly the same, not 
almost, not with a slightly different basedn) search manually and see what 
you get.


Buchan Milne
ISP Systems Specialist

Attachment: pgpVbQjkpLp1f.pgp
Description: PGP signature