1999-09-10 10:15:03 +08:00
|
|
|
#! /bin/sh
|
1999-09-02 08:52:43 +08:00
|
|
|
# $OpenLDAP$
|
2003-11-29 04:00:23 +08:00
|
|
|
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
##
|
|
|
|
## Copyright 1998-2003 The OpenLDAP Foundation.
|
|
|
|
## All rights reserved.
|
|
|
|
##
|
|
|
|
## Redistribution and use in source and binary forms, with or without
|
|
|
|
## modification, are permitted only as authorized by the OpenLDAP
|
|
|
|
## Public License.
|
|
|
|
##
|
|
|
|
## A copy of this license is available in the file LICENSE in the
|
|
|
|
## top-level directory of the distribution or, alternatively, at
|
|
|
|
## <http://www.OpenLDAP.org/license.html>.
|
1999-02-08 19:42:14 +08:00
|
|
|
|
2003-10-22 13:14:08 +08:00
|
|
|
MONITORDB=${AC_MONITOR-no}
|
|
|
|
PROXYCACHE=${AC_CACHE-no}
|
|
|
|
WITHTLS=${AC_WITHTLS-yes}
|
|
|
|
|
2003-10-21 11:08:08 +08:00
|
|
|
DATADIR=./testdata
|
1999-04-08 10:18:54 +08:00
|
|
|
PROGDIR=./progs
|
2003-10-22 13:14:08 +08:00
|
|
|
TESTDIR=./testrun
|
|
|
|
|
|
|
|
DBDIR1A=$TESTDIR/db.1.a
|
|
|
|
DBDIR1B=$TESTDIR/db.1.b
|
|
|
|
DBDIR1C=$TESTDIR/db.1.c
|
|
|
|
DBDIR1=$DBDIR1A
|
|
|
|
DBDIR2=$TESTDIR/db.2.a
|
|
|
|
DBDIR3=$TESTDIR/db.3.a
|
|
|
|
DBDIR4=$TESTDIR/db.4.a
|
|
|
|
DBDIR5=$TESTDIR/db.5.a
|
|
|
|
DBDIR6=$TESTDIR/db.6.a
|
|
|
|
|
2000-10-02 06:46:52 +08:00
|
|
|
CONF=$DATADIR/slapd.conf
|
2003-10-24 11:35:20 +08:00
|
|
|
CONFTWO=$DATADIR/slapd2.conf
|
2000-10-02 06:46:52 +08:00
|
|
|
MCONF=$DATADIR/slapd-master.conf
|
|
|
|
PWCONF=$DATADIR/slapd-pw.conf
|
|
|
|
ACLCONF=$DATADIR/slapd-acl.conf
|
2002-10-22 03:11:27 +08:00
|
|
|
RCONF=$DATADIR/slapd-referrals.conf
|
2000-10-02 06:46:52 +08:00
|
|
|
MASTERCONF=$DATADIR/slapd-repl-master.conf
|
2003-05-09 14:50:44 +08:00
|
|
|
SRMASTERCONF=$DATADIR/slapd-syncrepl-master.conf
|
2000-10-02 06:46:52 +08:00
|
|
|
SLAVECONF=$DATADIR/slapd-repl-slave.conf
|
2003-06-21 08:21:57 +08:00
|
|
|
PROXYCACHECONF=$DATADIR/slapd-proxycache.conf
|
|
|
|
CACHEMASTERCONF=$DATADIR/slapd-cache-master.conf
|
2003-06-26 14:12:55 +08:00
|
|
|
R1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh1.conf
|
|
|
|
R2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-refresh2.conf
|
|
|
|
P1SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist1.conf
|
|
|
|
P2SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist2.conf
|
|
|
|
P3SRSLAVECONF=$DATADIR/slapd-syncrepl-slave-persist3.conf
|
2000-10-02 06:46:52 +08:00
|
|
|
REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
|
|
|
|
SCHEMACONF=$DATADIR/slapd-schema.conf
|
2002-01-11 17:26:01 +08:00
|
|
|
GLUECONF=$DATADIR/slapd-glue.conf
|
1999-01-10 10:25:41 +08:00
|
|
|
|
2003-10-22 13:14:08 +08:00
|
|
|
CONF1=$TESTDIR/slapd.1.conf
|
|
|
|
CONF2=$TESTDIR/slapd.2.conf
|
|
|
|
CONF3=$TESTDIR/slapd.3.conf
|
|
|
|
CONF4=$TESTDIR/slapd.4.conf
|
|
|
|
CONF5=$TESTDIR/slapd.5.conf
|
|
|
|
CONF6=$TESTDIR/slapd.6.conf
|
|
|
|
ADDCONF=$TESTDIR/slapadd.conf
|
1999-02-08 19:42:14 +08:00
|
|
|
|
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
|
|
|
|
|
2000-10-02 06:46:52 +08:00
|
|
|
LDIFFILTER=$SRCDIR/scripts/acfilter.sh
|
|
|
|
CONFFILTER=$SRCDIR/scripts/conf.sh
|
|
|
|
|
2000-07-27 02:13:38 +08:00
|
|
|
SLAPADD="../servers/slapd/tools/slapadd $LDAP_VERBOSE"
|
|
|
|
SLAPCAT="../servers/slapd/tools/slapcat $LDAP_VERBOSE"
|
|
|
|
SLAPINDEX="../servers/slapd/tools/slapindex $LDAP_VERBOSE"
|
1999-08-18 03:00:59 +08:00
|
|
|
|
2002-01-16 01:26:44 +08:00
|
|
|
unset DIFF_OPTIONS
|
|
|
|
DIFF="diff -iu"
|
2002-01-31 05:35:52 +08:00
|
|
|
CMP="diff -i"
|
2003-02-06 05:20:04 +08:00
|
|
|
BCMP="diff -iB"
|
2000-07-20 10:23:00 +08:00
|
|
|
CMPOUT=/dev/null
|
2001-12-06 14:42:56 +08:00
|
|
|
SLAPD="../servers/slapd/slapd -s0"
|
1998-08-09 08:43:13 +08:00
|
|
|
SLURPD=../servers/slurpd/slurpd
|
2000-07-16 08:14:08 +08:00
|
|
|
LDAPPASSWD="$CLIENTDIR/ldappasswd $TOOLARGS"
|
|
|
|
LDAPSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
|
2002-10-22 03:11:27 +08:00
|
|
|
LDAPRSEARCH="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS"
|
2000-07-16 08:14:08 +08:00
|
|
|
LDAPMODIFY="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
|
2003-02-10 07:38:21 +08:00
|
|
|
LDAPADD="$CLIENTDIR/ldapmodify -a $TOOLPROTO $TOOLARGS"
|
2000-07-16 08:14:08 +08:00
|
|
|
LDAPMODRDN="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
|
2002-03-11 08:23:18 +08:00
|
|
|
LDAPWHOAMI="$CLIENTDIR/ldapwhoami $TOOLARGS"
|
1999-02-22 19:28:01 +08:00
|
|
|
SLAPDTESTER=$PROGDIR/slapd-tester
|
2002-11-12 03:39:10 +08:00
|
|
|
LVL=${SLAPD_DEBUG-261}
|
2002-01-21 14:35:04 +08:00
|
|
|
LOCALHOST=localhost
|
2003-10-22 13:14:08 +08:00
|
|
|
PORT1=9011
|
|
|
|
PORT2=9012
|
|
|
|
PORT3=9013
|
|
|
|
PORT4=9014
|
|
|
|
PORT5=9015
|
|
|
|
PORT6=9016
|
|
|
|
URI1="ldap://${LOCALHOST}:$PORT1/"
|
|
|
|
URI2="ldap://${LOCALHOST}:$PORT2"
|
|
|
|
URI3="ldap://${LOCALHOST}:$PORT3/"
|
|
|
|
URI4="ldap://${LOCALHOST}:$PORT4/"
|
|
|
|
URI5="ldap://${LOCALHOST}:$PORT5/"
|
|
|
|
URI6="ldap://${LOCALHOST}:$PORT6/"
|
1999-01-10 10:25:41 +08:00
|
|
|
LDIF=$DATADIR/test.ldif
|
2002-01-11 17:26:01 +08:00
|
|
|
LDIFGLUED=$DATADIR/test-glued.ldif
|
1999-01-10 10:25:41 +08:00
|
|
|
LDIFORDERED=$DATADIR/test-ordered.ldif
|
2003-05-31 05:43:03 +08:00
|
|
|
LDIFORDEREDCP=$DATADIR/test-ordered-cp.ldif
|
|
|
|
LDIFORDEREDNOCP=$DATADIR/test-ordered-nocp.ldif
|
2001-11-02 23:39:43 +08:00
|
|
|
LDIFBASE=$DATADIR/test-base.ldif
|
1999-12-13 02:45:06 +08:00
|
|
|
LDIFPASSWD=$DATADIR/passwd.ldif
|
|
|
|
LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
|
2002-01-27 07:14:51 +08:00
|
|
|
LDIFLANG=$DATADIR/test-lang.ldif
|
|
|
|
LDIFLANGOUT=$DATADIR/lang-out.ldif
|
2002-10-22 03:11:27 +08:00
|
|
|
LDIFREF=$DATADIR/referrals.ldif
|
2000-05-26 10:48:24 +08:00
|
|
|
MONITOR=""
|
2002-10-22 03:11:27 +08:00
|
|
|
REFDN="c=US"
|
2002-01-16 01:26:44 +08:00
|
|
|
BASEDN="o=University of Michigan,c=US"
|
|
|
|
MANAGERDN="cn=Manager,o=University of Michigan,c=US"
|
|
|
|
UPDATEDN="cn=Replica,o=University of Michigan,c=US"
|
1998-08-09 08:43:13 +08:00
|
|
|
PASSWD=secret
|
2002-10-01 02:43:18 +08:00
|
|
|
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"
|
2002-01-16 01:26:44 +08:00
|
|
|
JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,o=University of Michigan,c=US"
|
2003-10-22 13:14:08 +08:00
|
|
|
|
|
|
|
LOG1=$TESTDIR/slapd.1.log
|
|
|
|
LOG2=$TESTDIR/slapd.2.log
|
|
|
|
LOG3=$TESTDIR/slapd.3.log
|
|
|
|
LOG4=$TESTDIR/slapd.4.log
|
|
|
|
LOG5=$TESTDIR/slapd.5.log
|
|
|
|
LOG6=$TESTDIR/slapd.6.log
|
|
|
|
SLAPADDLOG1=$TESTDIR/slapadd.1.log
|
|
|
|
SLURPLOG=$TESTDIR/slurp.log
|
|
|
|
|
|
|
|
SEARCHOUT=$TESTDIR/ldapsearch.out
|
|
|
|
SEARCHFLT=$TESTDIR/ldapsearch.flt
|
|
|
|
LDIFFLT=$TESTDIR/ldif.flt
|
|
|
|
TESTOUT=$TESTDIR/test.out
|
|
|
|
INITOUT=$TESTDIR/init.out
|
|
|
|
|
|
|
|
SERVER1OUT=$TESTDIR/server1.out
|
2003-10-23 05:36:10 +08:00
|
|
|
SERVER1FLT=$TESTDIR/server1.flt
|
2003-10-22 13:14:08 +08:00
|
|
|
SERVER2OUT=$TESTDIR/server2.out
|
|
|
|
SERVER2FLT=$TESTDIR/server2.flt
|
|
|
|
SERVER3OUT=$TESTDIR/server3.out
|
|
|
|
SERVER3FLT=$TESTDIR/server3.flt
|
|
|
|
SERVER4OUT=$TESTDIR/server4.out
|
|
|
|
SERVER4FLT=$TESTDIR/server4.flt
|
|
|
|
SERVER5OUT=$TESTDIR/server5.out
|
|
|
|
SERVER5FLT=$TESTDIR/server5.flt
|
|
|
|
SERVER6OUT=$TESTDIR/server6.out
|
|
|
|
SERVER6FLT=$TESTDIR/server6.flt
|
|
|
|
|
|
|
|
MASTEROUT=$SERVER1OUT
|
|
|
|
MASTERFLT=$SERVER1FLT
|
|
|
|
SLAVEOUT=$SERVER2OUT
|
|
|
|
SLAVEFLT=$SERVER2FLT
|
|
|
|
|
2002-10-22 03:11:27 +08:00
|
|
|
REFERRALOUT=$DATADIR/referrals.out
|
1999-01-10 10:25:41 +08:00
|
|
|
SEARCHOUTMASTER=$DATADIR/search.out.master
|
2002-08-30 05:36:36 +08:00
|
|
|
SEARCHOUTX=$DATADIR/search.out.xsearch
|
1999-01-10 10:25:41 +08:00
|
|
|
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
|
2003-10-18 10:39:08 +08:00
|
|
|
CERTIFICATETLS=$DATADIR/certificate.tls
|
2003-10-17 10:15:50 +08:00
|
|
|
CERTIFICATEOUT=$DATADIR/certificate.out
|
2003-10-21 11:08:08 +08:00
|
|
|
|
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
|