diff --git a/tests/scripts/test007-replication b/tests/scripts/test007-replication index 51b27621ed..8deaa27437 100755 --- a/tests/scripts/test007-replication +++ b/tests/scripts/test007-replication @@ -64,7 +64,7 @@ done echo "Using ldapsearch to check that slave slapd is running..." for i in 0 1 2 3 4 5; do - $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \ + $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $SLAVEPORT \ 'objectclass=*' > /dev/null 2>&1 RC=$? if test $RC = 0 ; then diff --git a/tests/scripts/test017-syncreplication-refresh b/tests/scripts/test017-syncreplication-refresh index 20a28eaf24..038c7521db 100755 --- a/tests/scripts/test017-syncreplication-refresh +++ b/tests/scripts/test017-syncreplication-refresh @@ -65,7 +65,7 @@ done echo "Using ldapsearch to check that slave slapd is running..." for i in 0 1 2 3 4 5; do - $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT \ + $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $SLAVEPORT \ 'objectclass=*' > /dev/null 2>&1 RC=$? if test $RC = 0 ; then