Rewrite master/slave ports

This commit is contained in:
Kurt Zeilenga 2002-08-12 21:49:27 +00:00
parent f8f1321760
commit c9565e7530
6 changed files with 10 additions and 8 deletions

View File

@ -15,7 +15,7 @@ argsfile ./test-repl/slapd.args
# ldbm database definitions
#######################################################################
referral "ldap://localhost:9009/"
referral "ldap://localhost:@PORT@/"
database @BACKEND@
cachesize 0

View File

@ -28,7 +28,7 @@ rootpw secret
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

View File

@ -11,7 +11,7 @@ include ./schema/openldap.schema
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
#referral "ldap://localhost:9009/"
#referral "ldap://localhost:@PORT@/"
#######################################################################
# ldbm database definitions
@ -24,7 +24,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:9009"
updateref "ldap://localhost:@PORT@"
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
#bdb#index objectClass eq

View File

@ -28,7 +28,7 @@ rootpw secret
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

View File

@ -11,7 +11,7 @@ include ./schema/openldap.schema
pidfile ./test-repl/slapd.pid
argsfile ./test-repl/slapd.args
#referral "ldap://localhost:9009/"
#referral "ldap://localhost:@PORT@/"
#######################################################################
# ldbm database definitions
@ -24,7 +24,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:9009"
updateref "ldap://localhost:@PORT@"
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
#bdb#index objectClass eq

View File

@ -1,8 +1,10 @@
#! /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/"