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) (200.189.117.10)
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 ou: MUNICIPIOS ref: ldap://<IP>/ou=MUNICIPIOS,dc=pr objectClass: referral objectClass: extensibleObject dc: MUNICIPIOS
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.