diff --git a/tests/data/slapd-ref-slave.conf b/tests/data/slapd-ref-slave.conf
index 484b2e1b2236f44df3a00426fa9aa0e8ce41ab9f..f9335b767bcdd5ebed8e14d53c319874f8eeb70b 100644
--- a/tests/data/slapd-ref-slave.conf
+++ b/tests/data/slapd-ref-slave.conf
@@ -15,7 +15,7 @@ argsfile    ./test-repl/slapd.args
 # ldbm database definitions
 #######################################################################
 
-referral	"ldap://localhost:@PORT@/"
+referral	"ldap://localhost:9009/"
 
 database	@BACKEND@
 cachesize	0
diff --git a/tests/data/slapd-repl-master.conf b/tests/data/slapd-repl-master.conf
index 55e5f43118606b6f8e6358d236422cff5d485479..48c1c1b9b30486c4bd428186112af76e828e65f1 100644
--- a/tests/data/slapd-repl-master.conf
+++ b/tests/data/slapd-repl-master.conf
@@ -28,7 +28,7 @@ rootpw		secret
 
 replogfile	./test-db/slapd.replog
 
-replica		host=localhost:@SLAVEPORT@
+replica		host=localhost:9010
 		binddn="cn=Replica,o=University of Michigan,c=US"
 		bindmethod=simple
 		credentials=secret
diff --git a/tests/data/slapd-repl-slave.conf b/tests/data/slapd-repl-slave.conf
index 18be3844831e6cbe27cd0b56c5d6439332878e7b..64449bc7321d95c5749498b0926f3e84cc4f2033 100644
--- a/tests/data/slapd-repl-slave.conf
+++ b/tests/data/slapd-repl-slave.conf
@@ -11,8 +11,6 @@ include ./schema/openldap.schema
 pidfile     ./test-repl/slapd.pid
 argsfile    ./test-repl/slapd.args
 
-#referral	"ldap://localhost:@PORT@/"
-
 #######################################################################
 # ldbm database definitions
 #######################################################################
@@ -24,7 +22,7 @@ directory	./test-repl
 rootdn		"cn=Replica,o=University of Michigan,c=US"
 rootpw		secret
 updatedn	"cn=Replica,o=University of Michigan,c=US"
-updateref	"ldap://localhost:@PORT@"
+updateref	"ldap://localhost:9009"
 #ldbm#index		objectClass	eq
 #ldbm#index		cn,sn,uid	pres,eq,sub
 #bdb#index		objectClass	eq
diff --git a/tests/data/slapd-repl-submaster.conf b/tests/data/slapd-repl-submaster.conf
index 2521cf851d69e4118761e1fa0b12ddbe69ddff5f..699dedbcc9a0ca4003aa1088660eea9d6a153312 100644
--- a/tests/data/slapd-repl-submaster.conf
+++ b/tests/data/slapd-repl-submaster.conf
@@ -28,7 +28,7 @@ rootpw		secret
 
 replogfile	./test-db/slapd.replog
 
-replica		host=localhost:@SLAVEPORT@
+replica		host=localhost:9010
 		suffix="ou=Groups,o=University of Michigan,c=US"
 		binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US"
 		bindmethod=simple
diff --git a/tests/data/slapd-repl-subslave.conf b/tests/data/slapd-repl-subslave.conf
index 6552af67e5a375396e6dc81561e4442f1e53a1e9..a584af0bf11f74edf926fc4a8e7bd25465da796b 100644
--- a/tests/data/slapd-repl-subslave.conf
+++ b/tests/data/slapd-repl-subslave.conf
@@ -11,8 +11,6 @@ include ./schema/openldap.schema
 pidfile     ./test-repl/slapd.pid
 argsfile    ./test-repl/slapd.args
 
-#referral	"ldap://localhost:@PORT@/"
-
 #######################################################################
 # ldbm database definitions
 #######################################################################
@@ -24,7 +22,7 @@ directory	./test-repl
 rootdn		"cn=Replica,ou=Groups,o=University of Michigan,c=US"
 rootpw		secret
 updatedn	"cn=Replica,ou=Groups,o=University of Michigan,c=US"
-updateref	"ldap://localhost:@PORT@"
+updateref	"ldap://localhost:9009"
 #ldbm#index		objectClass	eq
 #ldbm#index		cn,sn,uid	pres,eq,sub
 #bdb#index		objectClass	eq