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

Re: Just organizationalUnits objects copied doing sync replication



--On Wednesday, August 12, 2009 11:17 PM +0100 Yeray Gutiérrez Cedrés <ycedres@gmail.com> wrote:

I'm trying to replicate an openldap database from a consumer like this:

index           objectClass,entryCSN,entryUUID eq
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100


To a provider like this:


index           objectClass,entryCSN,entryUUID eq

        syncrepl rid=123
                provider=ldap://10.140.200.3:389
                type=refreshOnly
                interval=00:00:00:01
                searchbase="dc=example,dc=org"
                scope=sub
                attrs="*"
                schemachecking=off
                bindmethod=simple
                binddn="cn=admin,dc=example,dc=org"
                credentials="mypassword"

The provider database is completely emtpy and I want the provider to
copy the whole database. The only objects that are copied are the
organizationalUnit class objects. The objects that are "under" the
organizationalUnits  (like for example a 'person' objetct)  are not
being copied. What could be the reason for that?


I think you are confused about the differences between "provider" and "consumer". The provider is what starts with the full database. The consumer is what gets the database from the provider. So the provider does *not* copy the database, the consumer does.

In any case, your "attrs" line is wrong. You really shouldn't set it at all and just use the default unless you really know what you're doing.

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration