I have a master ldap server named roark, and a slave ldap server named archives3 and both are running openldap 2.3.39. In roark's /etc/openldap/slapd.conf I added:
index entryUUID,entryCSN eq overlay syncprov syncprov-checkpoint 100 10 syncprov-sessionlog 100 lastmod on
and in archives3's slapd.conf I added:
cachesize 100000 idlcachesize 300000 checkpoint 1024 5
syncrepl rid=1 provider=ldap://roark.mdah.state.ms.us:389 type=refreshandPersist retry="60 +" searchbase="dc=mdah,dc=state,dc=ms,dc=us" filter="(objectClass=*)" scope=sub attrs="*,+" schemachecking=off bindmethod=simple binddn= "cn=Manager,dc=mdah,dc=state,dc=ms,dc=us" credentials={SSHA}xxxxxxxxxxxxxxx
and then loaded a slapcat yesterday into archives3's ldap with slapadd, and started ldap on archives3. Now I just added a user on roark's openldap with ldapadd, and it added the user fine, i can log in as them, and the timestamp on /var/lib/ldap files is current, however, on archives3, the timestamp on the files is still from yesterday. why hasn't archives3's ldap updated itself with the new user that was added?
[root@roark ldap]# date Fri Apr 18 11:39:03 CDT 2008 [root@roark ldap]# ls -ltr total 5660 drwxr-xr-x 2 root root 4096 2008-02-22 11:55 rpmorig -rw------- 1 ldap ldap 8192 2008-04-13 21:51 sambaDomainName.bdb -rw------- 1 ldap ldap 8192 2008-04-13 22:14 memberUid.bdb -rw-r----- 1 root root 769 2008-04-14 11:08 DB_CONFIG -rw------- 1 ldap ldap 49152 2008-04-16 12:11 displayName.bdb -rw------- 1 ldap ldap 102400 2008-04-17 00:00 sambaSID.bdb -rw------- 1 ldap ldap 24576 2008-04-17 11:32 __db.006 -rw------- 1 ldap ldap 557056 2008-04-17 11:32 __db.005 -rw------- 1 ldap ldap 98304 2008-04-17 11:32 __db.004 -rw------- 1 ldap ldap 270336 2008-04-17 11:32 __db.003 -rw------- 1 ldap ldap 368640 2008-04-17 11:32 __db.002 -rw------- 1 ldap ldap 24576 2008-04-17 11:32 __db.001 -rw------- 1 ldap ldap 10485760 2008-04-18 11:28 log.0000000001 -rw------- 1 ldap ldap 8192 2008-04-18 11:30 uidNumber.bdb -rw------- 1 ldap ldap 53248 2008-04-18 11:30 uid.bdb -rw------- 1 ldap ldap 53248 2008-04-18 11:30 sn.bdb -rw------- 1 ldap ldap 36864 2008-04-18 11:30 objectClass.bdb -rw------- 1 ldap ldap 8192 2008-04-18 11:30 gidNumber.bdb -rw------- 1 ldap ldap 8192 2008-04-18 11:30 entryUUID.bdb -rw------- 1 ldap ldap 8192 2008-04-18 11:30 entryCSN.bdb -rw------- 1 ldap ldap 57344 2008-04-18 11:30 dn2id.bdb -rw------- 1 ldap ldap 77824 2008-04-18 11:30 cn.bdb -rw------- 1 ldap ldap 311296 2008-04-18 11:31 id2entry.bdb -rw-r--r-- 1 ldap ldap 4096 2008-04-18 11:32 alock
[root@archives3 ldap]# date Fri Apr 18 11:39:32 CDT 2008 [root@archives3 ldap]# ls -ltr total 4232 -rw------- 1 ldap ldap 24576 2008-04-17 11:45 __db.006 -rw------- 1 ldap ldap 557056 2008-04-17 11:45 __db.005 -rw------- 1 ldap ldap 98304 2008-04-17 11:45 __db.004 -rw------- 1 ldap ldap 270336 2008-04-17 11:45 __db.003 -rw------- 1 ldap ldap 368640 2008-04-17 11:45 __db.002 -rw------- 1 ldap ldap 24576 2008-04-17 11:45 __db.001 -rw------- 1 ldap ldap 8192 2008-04-17 12:25 uidNumber.bdb -rw------- 1 ldap ldap 57344 2008-04-17 12:25 uid.bdb -rw------- 1 ldap ldap 53248 2008-04-17 12:25 sn.bdb -rw------- 1 ldap ldap 110592 2008-04-17 12:25 sambaSID.bdb -rw------- 1 ldap ldap 8192 2008-04-17 12:25 sambaDomainName.bdb -rw------- 1 ldap ldap 36864 2008-04-17 12:25 objectClass.bdb -rw------- 1 ldap ldap 8192 2008-04-17 12:25 memberUid.bdb -rw------- 1 ldap ldap 262144 2008-04-17 12:25 id2entry.bdb -rw------- 1 ldap ldap 8192 2008-04-17 12:25 gidNumber.bdb -rw------- 1 ldap ldap 49152 2008-04-17 12:25 dn2id.bdb -rw------- 1 ldap ldap 49152 2008-04-17 12:25 displayName.bdb -rw------- 1 ldap ldap 69632 2008-04-17 12:25 cn.bdb -rw------- 1 ldap ldap 10485760 2008-04-17 12:32 log.0000000001 -rw-r--r-- 1 ldap ldap 4096 2008-04-17 12:33 alock