1999-09-10 10:15:03 +08:00
|
|
|
#! /bin/sh
|
1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
1999-02-08 19:42:14 +08:00
|
|
|
|
1999-01-10 10:25:41 +08:00
|
|
|
DATADIR=$SRCDIR/data
|
1999-04-08 10:18:54 +08:00
|
|
|
PROGDIR=./progs
|
1999-01-10 10:25:41 +08:00
|
|
|
|
1999-02-09 04:08:25 +08:00
|
|
|
if test "$BACKEND" = "bdb2" ; then
|
1999-02-08 19:42:14 +08:00
|
|
|
CONF=$DATADIR/slapd-bdb2-master.conf
|
1999-12-13 02:45:06 +08:00
|
|
|
PWCONF=$DATADIR/slapd-bdb2-pw.conf
|
1999-02-08 19:42:14 +08:00
|
|
|
ACLCONF=$DATADIR/slapd-bdb2-acl.conf
|
|
|
|
MASTERCONF=$DATADIR/slapd-bdb2-repl-master.conf
|
|
|
|
SLAVECONF=$DATADIR/slapd-bdb2-repl-slave.conf
|
1999-07-16 10:45:46 +08:00
|
|
|
REFSLAVECONF=$DATADIR/slapd-bdb2-ref-slave.conf
|
1999-02-12 23:22:43 +08:00
|
|
|
TIMING="-t"
|
1999-02-08 19:42:14 +08:00
|
|
|
else
|
|
|
|
CONF=$DATADIR/slapd-master.conf
|
1999-12-13 02:45:06 +08:00
|
|
|
PWCONF=$DATADIR/slapd-pw.conf
|
1999-02-08 19:42:14 +08:00
|
|
|
ACLCONF=$DATADIR/slapd-acl.conf
|
|
|
|
MASTERCONF=$DATADIR/slapd-repl-master.conf
|
|
|
|
SLAVECONF=$DATADIR/slapd-repl-slave.conf
|
1999-07-16 10:45:46 +08:00
|
|
|
REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
|
1999-02-08 19:42:14 +08:00
|
|
|
fi
|
|
|
|
|
2000-07-16 08:14:08 +08:00
|
|
|
TOOLARGS="-x $LDAP_TOOLARGS"
|
|
|
|
TOOLPROTO="-P 3"
|
1999-06-29 07:46:16 +08:00
|
|
|
|
1999-04-29 14:50:00 +08:00
|
|
|
PASSWDCONF=$DATADIR/slapd-passwd.conf
|
|
|
|
|
1999-05-21 08:14:38 +08:00
|
|
|
CLIENTDIR=../clients/tools
|
|
|
|
#CLIENTDIR=/usr/local/bin
|
|
|
|
|
1999-08-18 03:00:59 +08:00
|
|
|
LDIF2LDBM="../servers/slapd/tools/slapadd $LDAP_VERBOSE"
|
|
|
|
|
2000-07-20 10:23:00 +08:00
|
|
|
CMP="diff -i"
|
|
|
|
CMPOUT=/dev/null
|
1998-08-09 08:43:13 +08:00
|
|
|
SLAPD=../servers/slapd/slapd
|
|
|
|
SLURPD=../servers/slurpd/slurpd
|
2000-07-16 08:14:08 +08:00
|
|
|
LDAPPASSWD="$CLIENTDIR/ldappasswd $TOOLARGS"
|
|
|
|
LDAPSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
|
|
|
|
LDAPMODIFY="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
|
|
|
|
LDAPADD="$CLIENTDIR/ldapadd $TOOLPROTO $TOOLARGS"
|
|
|
|
LDAPMODRDN="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
|
1999-02-22 19:28:01 +08:00
|
|
|
SLAPDTESTER=$PROGDIR/slapd-tester
|
1999-04-24 04:11:15 +08:00
|
|
|
LVL=${SLAPD_DEBUG-5}
|
1999-03-17 11:56:25 +08:00
|
|
|
ADDR=127.0.0.1
|
1998-08-09 08:43:13 +08:00
|
|
|
PORT=9009
|
|
|
|
SLAVEPORT=9010
|
1999-12-13 02:45:06 +08:00
|
|
|
MASTERURI="ldap://localhost:$PORT/"
|
|
|
|
SLAVEURI="ldap://localhost:$SLAVEPORT/"
|
1998-08-09 08:43:13 +08:00
|
|
|
DBDIR=./test-db
|
|
|
|
REPLDIR=./test-repl
|
1999-01-10 10:25:41 +08:00
|
|
|
LDIF=$DATADIR/test.ldif
|
|
|
|
LDIFORDERED=$DATADIR/test-ordered.ldif
|
1999-12-13 02:45:06 +08:00
|
|
|
LDIFPASSWD=$DATADIR/passwd.ldif
|
|
|
|
LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
|
2000-05-26 10:48:24 +08:00
|
|
|
MONITOR=""
|
1998-08-09 08:43:13 +08:00
|
|
|
BASEDN="o=University of Michigan, c=US"
|
|
|
|
MANAGERDN="cn=Manager, o=University of Michigan, c=US"
|
1999-07-16 10:45:46 +08:00
|
|
|
UPDATEDN="cn=Replica, o=University of Michigan, c=US"
|
1998-08-09 08:43:13 +08:00
|
|
|
PASSWD=secret
|
|
|
|
BABSDN="cn=Barbara Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US"
|
|
|
|
BJORNSDN="cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US"
|
|
|
|
JAJDN="cn=James A Jones 1, ou=Alumni Association, ou=People, o=University of Michigan, c=US"
|
1998-08-15 10:30:02 +08:00
|
|
|
MASTERLOG=$DBDIR/master.log
|
|
|
|
SLAVELOG=$DBDIR/slave.log
|
1998-08-19 08:11:06 +08:00
|
|
|
SLURPLOG=$DBDIR/slurp.log
|
1998-08-09 08:43:13 +08:00
|
|
|
SEARCHOUT=$DBDIR/ldapsearch.out
|
1998-08-19 09:29:52 +08:00
|
|
|
SEARCHFLT=$DBDIR/ldapsearch.flt
|
|
|
|
LDIFFLT=$DBDIR/ldif.flt
|
1998-08-09 08:43:13 +08:00
|
|
|
MASTEROUT=$DBDIR/master.out
|
|
|
|
SLAVEOUT=$DBDIR/slave.out
|
1999-07-30 05:25:39 +08:00
|
|
|
TESTOUT=$DBDIR/test.out
|
1999-08-26 08:51:27 +08:00
|
|
|
INITOUT=$DBDIR/init.out
|
1999-01-10 10:25:41 +08:00
|
|
|
SEARCHOUTMASTER=$DATADIR/search.out.master
|
|
|
|
MODIFYOUTMASTER=$DATADIR/modify.out.master
|
|
|
|
ADDDELOUTMASTER=$DATADIR/adddel.out.master
|
1999-05-27 08:31:30 +08:00
|
|
|
MODRDNOUTMASTER0=$DATADIR/modrdn.out.master.0
|
|
|
|
MODRDNOUTMASTER1=$DATADIR/modrdn.out.master.1
|
|
|
|
MODRDNOUTMASTER2=$DATADIR/modrdn.out.master.2
|
|
|
|
MODRDNOUTMASTER3=$DATADIR/modrdn.out.master.3
|
1999-01-10 10:25:41 +08:00
|
|
|
ACLOUTMASTER=$DATADIR/acl.out.master
|
|
|
|
REPLOUTMASTER=$DATADIR/repl.out.master
|
|
|
|
MODSRCHFILTERS=$DATADIR/modify.search.filters
|
1999-09-29 08:56:43 +08:00
|
|
|
# Just in case we linked the binaries dynamically
|
2000-02-04 06:26:00 +08:00
|
|
|
LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH
|