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

Re: (ITS#5881) referral problem with refreshAndPersist mode

joao.alfredo@gmail.com wrote:
> Full_Name: João Alfredo
> Version: 2.4.13
> OS: Debian Lenny
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> I am using a refreshAndPersist replication mode on OpenLdap 2.4.13.
> When I add referral OU on Master, this entrie is not replicate to Consumer.
> My test.ldif:
> dn: ou=MUNICIPIOS,dc=pr
> ref: ldap://<IP>/ou=MUNICIPIOS,dc=pr
> objectClass: referral
> objectClass: extensibleObject

> Logs on consumer side:
> Jan  8 17:50:15 ecelepar10173 slapd[2722]: do_syncrep2: rid=000 reference
> received error

Interesting, you've found a bug that has been present since syncrepl's code 
was first written in 2003. The syncrepl code assumes that it will only receive 
LDAP entries from the provider. But according to RFC4533, references are 
supposed to be sent as-is and stored by the consumer. The syncprov overlay 
obeys the spec and sends references correctly.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/