]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9339 Add cn=monitor to test063
authorHoward Chu <hyc@openldap.org>
Sun, 6 Sep 2020 15:25:23 +0000 (16:25 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 10 Sep 2020 02:29:19 +0000 (02:29 +0000)
Just for convenience

tests/scripts/test063-delta-multiprovider

index 6fa6c2ebfc3ad2598a2c5c1c443984e020fc84e4..32ab7bdc439c5dd157817510d8f4c30445f127cb 100755 (executable)
@@ -111,6 +111,17 @@ olcModuleLoad: back_$BACKEND.la
 
 EOF
 fi
+if [ "$MONITORDB" = mod ]; then
+cat <<EOF >> $TMP
+dn: cn=module,cn=config
+objectClass: olcModuleList
+cn: module
+olcModulePath: $TESTWD/../servers/slapd/back-monitor
+olcModuleLoad: back_monitor.la
+
+EOF
+fi
+
 MYURI=`eval echo '$URI'$n`
 PROVIDERURI=`eval echo '$URI'$o`
 if test $INDEXDB = indexdb ; then
@@ -186,6 +197,16 @@ olcAccessLogOps: writes
 olcAccessLogSuccess: TRUE
 
 EOF
+if [ "$MONITORDB" != no ]; then
+cat <<EOF >> $TMP
+dn: olcDatabase={3}monitor,cn=config
+objectClass: olcDatabaseConfig
+objectClass: olcmonitorConfig
+olcDatabase: {3}monitor
+
+EOF
+fi
+
 $SLAPADD -F $CFDIR -n 0  -d-1< $TMP > $TESTOUT 2>&1
 PORT=`eval echo '$PORT'$n`
 echo "Starting server $n on TCP/IP port $PORT..."