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

Re: Schema Replication and data replication



Hi,

On Wed, 7 Aug 2013, espeake@oreillyauto.com wrote:


So we are cooking with warm oil and I wan to the cooking with hot oil!!!!

I have been able to get upgraded 2.4.28 on open ldap.  Having issue with
getting a good build of 2.4.35.  But that isn't the problem.  Below is the
log on my log from one of my consumers after starting the slapd service.

<snipp>

Here is where is stops.

Here in the ldif file from my master:

# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 3411e7fc

use slapcat -n0 instead of copying manually the files from the slapd.d directory.

dn: olcDatabase={0}config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcUpdateRef: ldap://tntest-ldap-master-1.oreillyauto.com
olcsyncrepl: rid=002 provider=ldap://tntest-ldap-master-1.oreillyauto.com
type=refreshAndPersist retry="10 +" searchbase="cn=config"
bindmethod=simple binddn="uid=admin,dc=oreillyauto,dc=com"
credentials=<password>
olcAccess: to * by dn="uid=admin,dc=oreillyauto,dc=com" write by
dn="uid=ldapadmin,ou=system,dc=oreillyauto,dc=com" write by * none
olcRootDN: cn=admin,cn=config
olcRootPW:: c2VjcmV0
structuralObjectClass: olcDatabaseConfig
entryUUID: 35b75e72-93c2-1032-9ca4-711c013d2dcb
creatorsName: cn=config
createTimestamp: 20130807153144Z
entryCSN: 20130807153144.468097Z#000000#000#000000
modifiersName: cn=config
modifyTimestamp: 20130807153144Z

Here is the ldif from my consumer:

dn: olcDatabase={0}config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcRootDN: cn=admin,cn=config
olcRootPW: secret
structuralObjectClass: olcDatabaseConfig
olcsyncrepl: {0}rid=002
provider=ldap://tntest-ldap-master-1.oreillyauto.com type=refreshOnly
retry="5 +" searchbase="cn=config" bindmethod=simple
binddn="cn=admin,cn=config" credentials=<password> schemachecking=on
olcAccess: to * by dn="uid=admin,dc=oreillyauto,dc=com" write by
dn="uid=ldapadmin,ou=system,dc=oreillyauto,dc=com" write by * none
entryUUID: f074ba7c-09ed-1030-952b-0bb60fbd91a8
creatorsName: cn=config
createTimestamp: 20110503162710Z
entryCSN: 20110503162710.319234Z#000000#000#000000
modifiersName: cn=config
ModifyTimestamp: 20110503162710Z


both your entryCSN have #000# for the serverID. Even though it seems you
have somehow modified the configuration.

Your replication cannot work when you have not configured a serverID.

You need at least the following in your configs.

  olcServerID: 1 ldap://tntest-ldap-master-1.oreillyauto.com
  olcServerID: 2 ldap://tntest-ldap-master-2.oreillyauto.com

Also why does the ModifyTimestamp: attribute from your second server start with a capital 'M'.

Are you still somehow manually poking at the files in slapd.d ?

Please use slapcat / slapadd with the -n0 option to export and import your configuration.


Greetings
Christian

--
Christian Kratzer                      CK Software GmbH
Email:   ck@cksoft.de                  Wildberger Weg 24/2
Phone:   +49 7032 893 997 - 0          D-71126 Gaeufelden
Fax:     +49 7032 893 997 - 9          HRB 245288, Amtsgericht Stuttgart
Web:     http://www.cksoft.de/         Geschaeftsfuehrer: Christian Kratzer