mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Rewrite master/slave ports
This commit is contained in:
parent
f8f1321760
commit
c9565e7530
@ -15,7 +15,7 @@ argsfile ./test-repl/slapd.args
|
||||
# ldbm database definitions
|
||||
#######################################################################
|
||||
|
||||
referral "ldap://localhost:9009/"
|
||||
referral "ldap://localhost:@PORT@/"
|
||||
|
||||
database @BACKEND@
|
||||
cachesize 0
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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/"
|
||||
|
Loading…
Reference in New Issue
Block a user