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