summaryrefslogtreecommitdiff
path: root/net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2003-11-14 03:57:13 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2003-11-14 03:57:13 +0000
commitdf15f5fedf93ebb5a0f6c59931c9140680410aae (patch)
tree2d8e33442ac49d46b6a6f74dcbc9c07fcd5326dc /net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh
parentUpdate to 20031029. (diff)
** NOTICE: **
* OpenLDAP 2.0 is no longer actively maintained by the OpenLDAP Project. * You are strongly encouraged to update to OpenLDAP 2.1 * Port maintainers: Please respect the default in bsd.port.mk * I plan to remove OpenLDAP 2.0 from the FreeBSD ports tree May 2004 - Update net/openldap21-client and net/openldap21-server to version 2.1.23 - Update net/openldap22-client and net/openldap22-server to version 2.2.2.b, fix ITS#2747 from CVS - some fixes for net/openldap20-server from CVS, seems like there won't be a 2.0.28 release anymore - remove conflict with deleted port net/openldap12 - use PORTDOCS - use USE_OPENSSL - don't use _REENTRANT - add a deinstall message PR: 58278 Submitted by: me Approved by: marcus (mentor)
Diffstat (limited to 'net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh')
-rw-r--r--net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh71
1 files changed, 71 insertions, 0 deletions
diff --git a/net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh b/net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh
new file mode 100644
index 000000000000..c354e00a7fb6
--- /dev/null
+++ b/net/openldap23-server/files/patch-tests::scripts::test017-syncreplication-refresh
@@ -0,0 +1,71 @@
+--- tests/scripts/test017-syncreplication-refresh Mon Oct 6 16:57:32 2003
++++ tests/scripts/test017-syncreplication-refresh Sun Oct 19 15:33:58 2003
+@@ -44,9 +44,6 @@
+ fi
+ BACKEND=$SAVE
+
+-echo "Waiting 5 seconds to wait for master to start..."
+-sleep 5
+-
+ echo "Using ldapsearch to check that master slapd is running..."
+ for i in 0 1 2 3 4 5; do
+ $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \
+@@ -59,22 +56,28 @@
+ sleep 5
+ done
+
++if test $RC != 0 ; then
++ echo "ldapsearch failed ($RC)!"
++ kill -HUP $PID
++ exit $RC
++fi
++
+ echo "Using ldapadd to create the context prefix entry in the master..."
+ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD < \
+ $LDIFORDEREDCP > /dev/null 2>&1
+ RC=$?
+ if test $RC != 0 ; then
+ echo "ldapadd failed ($RC)!"
+- kill -HUP $PID $SLAVEPID
++ kill -HUP $PID
+ exit $RC
+ fi
+
+ echo "Starting slave slapd on TCP/IP port $R1SLAVEPORT..."
+ . $CONFFILTER $BACKEND $MONITORDB < $R1SRSLAVECONF > $R1REPLCONF
+ $SLAPD -f $R1REPLCONF -h $R1SLAVEURI -d $LVL $TIMING > $R1SLAVELOG 2>&1 &
+-R1SLAVEPID=$!
++SLAVEPID=$!
+ if test $WAIT != 0 ; then
+- echo SLAVEPID $R1SLAVEPID
++ echo SLAVEPID $SLAVEPID
+ read foo
+ fi
+
+@@ -90,6 +93,12 @@
+ sleep 5
+ done
+
++if test $RC != 0 ; then
++ echo "ldapsearch failed ($RC)!"
++ kill -HUP $PID
++ exit $RC
++fi
++
+ echo "Using ldapadd to populate the master directory..."
+ $LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT -w $PASSWD < \
+ $LDIFORDEREDNOCP > /dev/null 2>&1
+@@ -203,11 +212,11 @@
+
+ if test $RC != 0 ; then
+ echo "ldapsearch failed at slave ($RC)!"
+- kill -HUP $PID $R1SLAVEPID
++ kill -HUP $PID $SLAVEPID
+ exit $RC
+ fi
+
+-kill -HUP $PID $R1SLAVEPID
++kill -HUP $PID $SLAVEPID
+
+ SEARCHOUT=$MASTEROUT
+ LDIF=$R1SLAVEOUT