Commit 30aeae0b authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Regression test for ITS8800

parent 0c1ebd17
#! /bin/bash
# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
## Copyright 1998-2016 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted only as authorized by the OpenLDAP
## Public License.
##
## A copy of this license is available in the file LICENSE in the
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
if test $PPOLICY = ppolicyno; then
echo "Password policy overlay not available, test skipped"
exit 0
fi
if test $SYNCPROV = syncprovno; then
echo "Syncrepl provider overlay not available, test skipped"
exit 0
fi
if test $ACCESSLOG = accesslogno; then
echo "Accesslog overlay not available, test skipped"
exit 0
fi
if test $BACKEND = ldif ; then
# Onelevel search does not return entries in order of creation or CSN.
echo "$BACKEND backend unsuitable for syncprov logdb, test skipped"
exit 0
fi
echo "This test tracks a case where changes are not refreshed when an old db is reloaded"
echo "See http://www.openldap.org/its/index.cgi/?findid=8800 for more information."
MMR=4
XDIR=$TESTDIR/srv
mkdir -p $TESTDIR
$SLAPPASSWD -g -n >$CONFIGPWF
ITS=8800
ITSDIR=$DATADIR/regressions/its$ITS
n=1
while [ $n -le $MMR ]; do
echo "Initializing server configuration for MMR$n..."
DBDIR=${XDIR}$n/db
CFDIR=${XDIR}$n/slapd.d
mkdir -p ${XDIR}$n $DBDIR.1 $DBDIR.2 $CFDIR
. $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd-provider${n}.ldif > $CONFLDIF
$SLAPADD -F $CFDIR -n 0 -l $CONFLDIF
$SLAPADD -F $CFDIR -q -b $BASEDN -l $ITSDIR/its8800db.ldif
n=`expr $n + 1`
done
KILLPIDS=
n=1
while [ $n -le $MMR ]; do
MYURI=`eval echo '$URI'$n`
MYLOG=`eval echo '$LOG'$n`
CFDIR=${XDIR}$n/slapd.d
echo "Starting provider slapd on TCP/IP URI $MYURI"
$SLAPD -F $CFDIR -h $MYURI -d $LVL $TIMING > $MYLOG 2>&1 &
PID=$!
if test $WAIT != 0 ; then
echo PID $PID
read foo
fi
KILLPIDS="$PID $KILLPIDS"
PIDS[$n]="$PID"
sleep 1
echo "Using ldapsearch to check that provider slapd is running..."
for i in 0 1 2 3 4 5; do
$LDAPSEARCH -s base -b "" -H $MYURI \
'objectclass=*' > /dev/null 2>&1
RC=$?
if test $RC = 0 ; then
break
fi
echo "Waiting 5 seconds for slapd to start..."
sleep 5
done
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
n=`expr $n + 1`
done
echo "Sleeping 10 seconds to allow stabalization..."
sleep 10
echo "Looping failed authentications for 50 users 10 times each..."
user=250
while [ $user -le 300 ]; do
auths=1
echo -n "user $user..."
while [ $auths -le 10 ]; do
$LDAPSEARCH -x -H $URI1 -D uid=user.$user,ou=user,dc=example,dc=com -w wrongpass uid=fred >/dev/null 2>&1
RC=$?
if test $RC = 0 ; then
echo "ldapsearch succeeded when it should have failed"
exit 1
fi
auths=`expr $auths + 1`
done
echo "done"
user=`expr $user + 1`
done
echo -n "Sleeping 1 minute to ensure consumers catch up..."
sleep 60
echo "done"
echo -n "Stopping MMR1 slapd..."
kill -HUP "${PIDS[1]}"
wait ${PIDS[1]}
sleep $SLEEP2
echo "done"
echo -n "Wiping primary and accesslog databases for MMR1..."
DBDIR="$TESTDIR/srv1/db"
CFDIR="$TESTDIR/srv1/slapd.d"
mv $DBDIR.1 $DBDIR.1.orig
mv $DBDIR.2 $DBDIR.2.orig
mkdir -p $DBDIR.1 $DBDIR.2
$SLAPADD -F $CFDIR -q -b $BASEDN -l $ITSDIR/its8800db.ldif
echo "done"
echo "Starting provider1 slapd on TCP/IP URI $URI1"
CFDIR="$TESTDIR/srv1/slapd.d"
$SLAPD -F $CFDIR -h $URI1 -d $LVL $TIMING >> $LOG1 2>&1 &
PID=$!
if test $WAIT != 0 ; then
echo PID $PID
read foo
fi
PIDS[1]=$PID
sleep 1
echo "Using ldapsearch to check that provider slapd is running..."
for i in 0 1 2 3 4 5; do
$LDAPSEARCH -s base -b "" -H $URI1 \
'objectclass=*' > /dev/null 2>&1
RC=$?
if test $RC = 0 ; then
break
fi
echo "Waiting 5 seconds for slapd to start..."
sleep 5
done
n=1
KILLPIDS=
while [ $n -le 4 ]; do
KILLPIDS="${PIDS[$n]} $KILLPIDS"
n=`expr $n + 1`
done
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
echo "done"
echo "Sleeping 5 minutes to allow databases to sync..."
sleep 300
echo "Comparing resulting databases..."
n=1
while [ $n -le 4 ]; do
CFDIR=${XDIR}$n/slapd.d
$SLAPCAT -F $CFDIR -b $BASEDN -l $TESTDIR/finaldb-$n.ldif
n=`expr $n + 1`
done
n=2
while [ $n -le 4 ]; do
diff $TESTDIR/finaldb-1.ldif $TESTDIR/finaldb-$n.ldif > /dev/null 2>&1
RC=$?
if test $RC != 0 ; then
echo "ERROR: Final LDIF files differ"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
n=`expr $n + 1`
done
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"
test $KILLSERVERS != no && wait
exit 0
This diff is collapsed.
dn: cn=config
objectClass: olcGlobal
cn: config
olcLogLevel: Sync
olcLogLevel: Stats
olcPidFile: @TESTDIR@/slapd.1.pid
olcArgsFile: @TESTDIR@/slapd.1.args
olcServerID: 1
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file://@TESTWD@/@SCHEMADIR@/core.ldif
include: file://@TESTWD@/@SCHEMADIR@/cosine.ldif
include: file://@TESTWD@/@SCHEMADIR@/inetorgperson.ldif
include: file://@TESTWD@/@SCHEMADIR@/misc.ldif
include: file://@TESTWD@/@SCHEMADIR@/nis.ldif
include: file://@TESTWD@/@SCHEMADIR@/ppolicy.ldif
#mod#dn: cn=module{0},cn=config
#mod#objectClass: olcModuleList
#mod#cn: module{0}
#mod#olcModulePath: @TESTWD@/../servers/slapd/back-@BACKEND@/
#mod#olcModuleLoad: {0}back_@BACKEND@.la
#monitormod#dn: cn=module{1},cn=config
#monitormod#objectClass: olcModuleList
#monitormod#cn: module{1}
#monitormod#olcModulePath: @TESTWD@/../servers/slapd/back-monitor/
#monitormod#olcModuleLoad: {0}back_monitor.la
#syncprovmod#dn: cn=module{2},cn=config
#syncprovmod#objectClass: olcModuleList
#syncprovmod#cn: module{2}
#syncprovmod#olcModulePath: @TESTWD@/../servers/slapd/overlays/
#syncprovmod#olcModuleLoad: {0}syncprov.la
#accesslogmod#olcModuleLoad: {1}accesslog.la
#ppolicymod#olcModuleLoad: {2}ppolicy.la
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAccess: {0}to dn="" by * read
olcAccess: {1}to * by self write by users read by anonymous auth
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by * none
olcRootPW:< file://@TESTDIR@/configpw
dn: olcDatabase={1}@BACKEND@,cn=config
objectClass: olcDatabaseConfig
objectClass: olc@BACKEND@Config
olcDatabase: {1}@BACKEND@
olcSuffix: dc=example,dc=com
olcRootDN: cn=manager,dc=example,dc=com
olcRootPW: secret
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcMirrorMode: TRUE
olcSyncrepl: {0}rid=100 provider=@URI2@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {1}rid=101 provider=@URI3@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {2}rid=102 provider=@URI4@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
#~null~#olcDbDirectory: @TESTDIR@/srv1/db.1
#indexdb#olcDbIndex: default eq
#indexdb#olcDbIndex: objectClass
#indexdb#olcDbIndex: entryUUID
#indexdb#olcDbIndex: entryCSN
#indexdb#olcDbIndex: cn eq,sub,approx
#indexdb#olcDbIndex: givenName eq,sub,approx
#indexdb#olcDbIndex: displayname eq,sub,approx
#indexdb#olcDbIndex: uid eq,sub
#indexdb#olcDbIndex: uidNumber eq
#indexdb#olcDbIndex: gidNumber eq
#indexdb#olcDbIndex: mail eq,sub
#indexdb#olcDbIndex: sn eq,sub,approx
#indexdb#olcDbIndex: description eq,sub
#indexdb#olcDbIndex: title eq,sub
#indexdb#olcDbIndex: member
#indexdb#olcDbIndex: ou eq,sub,approx
#indexdb#olcDbIndex: memberUid
#mdb#olcDbMaxSize: 33554432
dn: olcOverlay={0}syncprov,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpCheckpoint: 20 10
olcSpSessionlog: 50
dn: olcOverlay={1}accesslog,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcAccessLogConfig
olcOverlay: {1}accesslog
olcAccessLogDB: cn=accesslog
olcAccessLogOps: writes
olcAccessLogPurge: 07+00:00 01+00:00
olcAccessLogSuccess: TRUE
dn: olcOverlay={2}ppolicy,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {2}ppolicy
olcPPolicyDefault: cn=default,ou=ppolicy,dc=example,dc=com
dn: olcDatabase={2}@BACKEND@,cn=config
objectClass: olcDatabaseConfig
objectClass: olc@BACKEND@Config
olcDatabase: {2}@BACKEND@
olcSuffix: cn=accesslog
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart,reqDN
#~null~#olcDbDirectory: @TESTDIR@/srv1/db.2
#mdb#olcDbMaxSize: 33554432
dn: olcOverlay={0}syncprov,olcDatabase={2}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpNoPresent: TRUE
olcSpReloadHint: TRUE
dn: olcDatabase={3}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {3}monitor
olcAccess: {0}to dn.subtree="cn=monitor" by * read
dn: cn=config
objectClass: olcGlobal
cn: config
olcLogLevel: Sync
olcLogLevel: Stats
olcPidFile: @TESTDIR@/slapd.2.pid
olcArgsFile: @TESTDIR@/slapd.2.args
olcServerID: 2
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file://@TESTWD@/@SCHEMADIR@/core.ldif
include: file://@TESTWD@/@SCHEMADIR@/cosine.ldif
include: file://@TESTWD@/@SCHEMADIR@/inetorgperson.ldif
include: file://@TESTWD@/@SCHEMADIR@/misc.ldif
include: file://@TESTWD@/@SCHEMADIR@/nis.ldif
include: file://@TESTWD@/@SCHEMADIR@/ppolicy.ldif
#mod#dn: cn=module{0},cn=config
#mod#objectClass: olcModuleList
#mod#cn: module{0}
#mod#olcModulePath: @TESTWD@/../servers/slapd/back-@BACKEND@/
#mod#olcModuleLoad: {0}back_@BACKEND@.la
#monitormod#dn: cn=module{1},cn=config
#monitormod#objectClass: olcModuleList
#monitormod#cn: module{1}
#monitormod#olcModulePath: @TESTWD@/../servers/slapd/back-monitor/
#monitormod#olcModuleLoad: {0}back_monitor.la
#syncprovmod#dn: cn=module{2},cn=config
#syncprovmod#objectClass: olcModuleList
#syncprovmod#cn: module{2}
#syncprovmod#olcModulePath: @TESTWD@/../servers/slapd/overlays/
#syncprovmod#olcModuleLoad: {0}syncprov.la
#accesslogmod#olcModuleLoad: {1}accesslog.la
#ppolicymod#olcModuleLoad: {2}ppolicy.la
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAccess: {0}to dn="" by * read
olcAccess: {1}to * by self write by users read by anonymous auth
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by * none
olcRootPW:< file://@TESTDIR@/configpw
dn: olcDatabase={1}@BACKEND@,cn=config
objectClass: olcDatabaseConfig
objectClass: olc@BACKEND@Config
olcDatabase: {1}@BACKEND@
olcSuffix: dc=example,dc=com
olcRootDN: cn=manager,dc=example,dc=com
olcRootPW: secret
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcMirrorMode: TRUE
olcSyncrepl: {0}rid=100 provider=@URI1@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {1}rid=101 provider=@URI3@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {2}rid=102 provider=@URI4@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
#~null~#olcDbDirectory: @TESTDIR@/srv2/db.1
#indexdb#olcDbIndex: default eq
#indexdb#olcDbIndex: objectClass
#indexdb#olcDbIndex: entryUUID
#indexdb#olcDbIndex: entryCSN
#indexdb#olcDbIndex: cn eq,sub,approx
#indexdb#olcDbIndex: givenName eq,sub,approx
#indexdb#olcDbIndex: displayname eq,sub,approx
#indexdb#olcDbIndex: uid eq,sub
#indexdb#olcDbIndex: uidNumber eq
#indexdb#olcDbIndex: gidNumber eq
#indexdb#olcDbIndex: mail eq,sub
#indexdb#olcDbIndex: sn eq,sub,approx
#indexdb#olcDbIndex: description eq,sub
#indexdb#olcDbIndex: title eq,sub
#indexdb#olcDbIndex: member
#indexdb#olcDbIndex: ou eq,sub,approx
#indexdb#olcDbIndex: memberUid
#mdb#olcDbMaxSize: 33554432
dn: olcOverlay={0}syncprov,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpCheckpoint: 20 10
olcSpSessionlog: 50
dn: olcOverlay={1}accesslog,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcAccessLogConfig
olcOverlay: {1}accesslog
olcAccessLogDB: cn=accesslog
olcAccessLogOps: writes
olcAccessLogPurge: 07+00:00 01+00:00
olcAccessLogSuccess: TRUE
dn: olcOverlay={2}ppolicy,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {2}ppolicy
olcPPolicyDefault: cn=default,ou=ppolicy,dc=example,dc=com
dn: olcDatabase={2}@BACKEND@,cn=config
objectClass: olcDatabaseConfig
objectClass: olc@BACKEND@Config
olcDatabase: {2}@BACKEND@
olcSuffix: cn=accesslog
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcDbIndex: default eq
olcDbIndex: entryCSN,objectClass,reqEnd,reqResult,reqStart,reqDN
#~null~#olcDbDirectory: @TESTDIR@/srv2/db.2
#mdb#olcDbMaxSize: 33554432
dn: olcOverlay={0}syncprov,olcDatabase={2}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpNoPresent: TRUE
olcSpReloadHint: TRUE
dn: olcDatabase={3}monitor,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {3}monitor
olcAccess: {0}to dn.subtree="cn=monitor" by * read
dn: cn=config
objectClass: olcGlobal
cn: config
olcLogLevel: Sync
olcLogLevel: Stats
olcPidFile: @TESTDIR@/slapd.3.pid
olcArgsFile: @TESTDIR@/slapd.3.args
olcServerID: 3
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file://@TESTWD@/@SCHEMADIR@/core.ldif
include: file://@TESTWD@/@SCHEMADIR@/cosine.ldif
include: file://@TESTWD@/@SCHEMADIR@/inetorgperson.ldif
include: file://@TESTWD@/@SCHEMADIR@/misc.ldif
include: file://@TESTWD@/@SCHEMADIR@/nis.ldif
include: file://@TESTWD@/@SCHEMADIR@/ppolicy.ldif
#mod#dn: cn=module{0},cn=config
#mod#objectClass: olcModuleList
#mod#cn: module{0}
#mod#olcModulePath: @TESTWD@/../servers/slapd/back-@BACKEND@/
#mod#olcModuleLoad: {0}back_@BACKEND@.la
#monitormod#dn: cn=module{1},cn=config
#monitormod#objectClass: olcModuleList
#monitormod#cn: module{1}
#monitormod#olcModulePath: @TESTWD@/../servers/slapd/back-monitor/
#monitormod#olcModuleLoad: {0}back_monitor.la
#syncprovmod#dn: cn=module{2},cn=config
#syncprovmod#objectClass: olcModuleList
#syncprovmod#cn: module{2}
#syncprovmod#olcModulePath: @TESTWD@/../servers/slapd/overlays/
#syncprovmod#olcModuleLoad: {0}syncprov.la
#accesslogmod#olcModuleLoad: {1}accesslog.la
#ppolicymod#olcModuleLoad: {2}ppolicy.la
dn: olcDatabase={-1}frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: {-1}frontend
olcAccess: {0}to dn="" by * read
olcAccess: {1}to * by self write by users read by anonymous auth
dn: olcDatabase={0}config,cn=config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by * none
olcRootPW:< file://@TESTDIR@/configpw
dn: olcDatabase={1}@BACKEND@,cn=config
objectClass: olcDatabaseConfig
objectClass: olc@BACKEND@Config
olcDatabase: {1}@BACKEND@
olcSuffix: dc=example,dc=com
olcRootDN: cn=manager,dc=example,dc=com
olcRootPW: secret
olcSizeLimit: unlimited
olcTimeLimit: unlimited
olcMirrorMode: TRUE
olcSyncrepl: {0}rid=100 provider=@URI2@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {1}rid=101 provider=@URI1@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
olcSyncrepl: {2}rid=102 provider=@URI4@ binddn="cn=manager,dc=example,dc=com
" credentials=secret bindmethod=simple searchbase="dc=example,dc=com" logba
se="cn=accesslog" logfilter="(&(objectClass=auditWriteObject)(reqResult=0))
" filter="(objectClass=*)" schemachecking=off attrs="*,+" type=refreshAndPe
rsist retry="60 +" tls_reqcert=never timeout=0 keepalive=240:10:30 syncdata
=accesslog network-timeout=0 scope=sub interval=00:00:00:03
#~null~#olcDbDirectory: @TESTDIR@/srv3/db.1
#indexdb#olcDbIndex: default eq
#indexdb#olcDbIndex: objectClass
#indexdb#olcDbIndex: entryUUID
#indexdb#olcDbIndex: entryCSN
#indexdb#olcDbIndex: cn eq,sub,approx
#indexdb#olcDbIndex: givenName eq,sub,approx
#indexdb#olcDbIndex: displayname eq,sub,approx
#indexdb#olcDbIndex: uid eq,sub
#indexdb#olcDbIndex: uidNumber eq
#indexdb#olcDbIndex: gidNumber eq
#indexdb#olcDbIndex: mail eq,sub
#indexdb#olcDbIndex: sn eq,sub,approx
#indexdb#olcDbIndex: description eq,sub
#indexdb#olcDbIndex: title eq,sub
#indexdb#olcDbIndex: member
#indexdb#olcDbIndex: ou eq,sub,approx
#indexdb#olcDbIndex: memberUid
#mdb#olcDbMaxSize: 33554432
dn: olcOverlay={0}syncprov,olcDatabase={1}@BACKEND@,cn=config
objectClass: olcOverlayConfig
objectClass: olcConfig
objectClass: top
objectClass: olcSyncProvConfig
olcOverlay: {0}syncprov
olcSpCheckpoint: 20 10