# ldbm database definitions
#######################################################################
-referral "ldap://localhost:9009/"
+referral "ldap://localhost:@PORT@/"
database @BACKEND@
cachesize 0
replogfile ./test-db/slapd.replog
-replica host=localhost:9010
+replica host=localhost:@SLAVEPORT@
binddn="cn=Replica,o=University of Michigan,c=US"
bindmethod=simple
credentials=secret
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
-#referral "ldap://localhost:9009/"
+#referral "ldap://localhost:@PORT@/"
#######################################################################
# ldbm database definitions
rootdn "cn=Replica,o=University of Michigan,c=US"
rootpw secret
updatedn "cn=Replica,o=University of Michigan,c=US"
-updateref "ldap://localhost:9009"
+updateref "ldap://localhost:@PORT@"
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
#bdb#index objectClass eq
replogfile ./test-db/slapd.replog
-replica host=localhost:9010
+replica host=localhost:@SLAVEPORT@
suffix="ou=Groups,o=University of Michigan,c=US"
binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US"
bindmethod=simple
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
-#referral "ldap://localhost:9009/"
+#referral "ldap://localhost:@PORT@/"
#######################################################################
# ldbm database definitions
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:9009"
+updateref "ldap://localhost:@PORT@"
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
#bdb#index objectClass eq
#! /bin/sh
# $OpenLDAP$
+# . $SRCDIR/scripts/defines.sh
if [ x"$MONITORDB" = x"yes" ] ; then
MON=monitor
else
MON=nomonitor
fi
-sed -e "s/@BACKEND@/$BACKEND/" -e "s/^#$BACKEND#//" -e "s/^#$MON#//"
+sed -e "s/@BACKEND@/$BACKEND/" -e "s/^#$BACKEND#//" -e "s/^#$MON#//" \
+ -e "s/@PORT@/$PORT/" -e "s/@SLAVEPORT@/$SLAVEPORT/"