Hi, this is my test setup
##provider###
slapd.conf pidfile /tmp/run/slapd1.pid argsfile /tmp/run/slapd1.args loglevel sync modulepath /usr/local/libexec/openldap moduleload syncprov.la access to dn.base="" by * read access to dn.base="cn=Subschema" by * read suffix "dc=my-domain,dc=com" rootdn "cn=Manager,dc=my-domain,dc=com" rootpw secret directory /tmp/slapd1/ index objectClass eq overlay syncprov -------------------- initial.ldif
dn: dc=my-domain,dc=com objectclass: domain dc: my-domain
dn: ou=organisation 1,dc=my-domain,dc=com objectclass: organizationalUnit ou: organisation 1
dn: ou=organisation 2,dc=my-domain,dc=com objectclass: organizationalUnit ou: organisation 2
dn: cn=Foo Bar,ou=organisation 1,dc=my-domain,dc=com objectclass: inetorgperson cn: Foo Bar sn: Bar mail: foobar@my-domain.com telephoneNumber: +49.40.2997714
dn: cn=Bar Foo,ou=organisation 2,dc=my-domain,dc=com objectclass: alias objectclass: extensibleObject aliasedObjectName: cn=Foo Bar,ou=organisation 1,dc=my-domain,dc=com cn: Bar Foo sn: Foo --------------- ## Consumer ####
slapd.conf
include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetorgperson.schema pidfile /tmp/run/slapd2.pid argsfile /tmp/run/slapd2.args loglevel sync access to dn.base="" by * read access to dn.base="cn=Subschema" by * read database bdb suffix "dc=my-domain,dc=com" rootdn "cn=Manager,dc=my-domain,dc=com" rootpw secret directory /tmp/slapd2/ index objectClass eq syncrepl rid=02 provider=ldap://localhost:9001 binddn=cn=Manager,dc=my-domain,dc=com bindmethod=simple credentials=secret searchbase="dc=my-domain,dc=com" scope=sub type=refreshAndPersist retry="5 5 300 5"
--------------------
After starting the comsumer, the initial dataset gets replicated. If adding the following entries (using web2ldap) to the provider
dn: cn=Mike Miller,ou=organisation 1,dc=my-domain,dc=com sn: Miller cn: Mike Miller mail: mmiller@my-domain.com telephoneNumber: +49.40.4450003 objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person
dn: cn=Miller Mike,ou=organisation 2,dc=my-domain,dc=com aliasedObjectName: cn=Mike Miller,ou=organisation 1,dc=my-domain,dc=com cn: Miller Mike objectClass: alias objectClass: extensibleObject
dn: cn=Joe Smith,ou=organisation 1,dc=my-domain,dc=com sn: Smith cn: Joe Smith mail: jsmith@my-domain.com telephoneNumber: +49.40.4450004 objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: person
dn: cn=Smith Joe,ou=organisation 2,dc=my-domain,dc=com aliasedObjectName: cn=Joe Smith,ou=organisation 1,dc=my-domain,dc=com cn: Smith Joe objectClass: alias objectClass: extensibleObject
the alias objects are not replicated, only after a consumer restart.
-Dieter