2 # $OpenLDAP: pkg/ldap/tests/scripts/defines.sh,v 1.141.2.12 2008/04/14 21:51:34 quanah Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
21 MONITORDB
=${AC_monitor-no}
22 BACKLDAP
=${AC_ldap-ldapno}
23 BACKMETA
=${AC_meta-metano}
24 BACKRELAY
=${AC_relay-relayno}
25 BACKSQL
=${AC_sql-sqlno}
26 RDBMS
=${SLAPD_USE_SQL-rdbmsno}
27 RDBMSWRITE
=${SLAPD_USE_SQLWRITE-no}
30 ACCESSLOG
=${AC_accesslog-accesslogno}
32 DYNLIST
=${AC_dynlist-dynlistno}
33 MEMBEROF
=${AC_memberof-memberofno}
34 PROXYCACHE
=${AC_pcache-pcacheno}
35 PPOLICY
=${AC_ppolicy-ppolicyno}
36 REFINT
=${AC_refint-refintno}
37 RETCODE
=${AC_retcode-retcodeno}
39 SYNCPROV
=${AC_syncprov-syncprovno}
40 TRANSLUCENT
=${AC_translucent-translucentno}
41 UNIQUE
=${AC_unique-uniqueno}
42 VALSORT
=${AC_valsort-valsortno}
45 WITH_SASL
=${AC_WITH_SASL-no}
46 USE_SASL
=${SLAPD_USE_SASL-no}
47 ACI
=${AC_ACI_ENABLED-acino}
48 THREADS
=${AC_THREADS-threadsno}
52 DATADIR
=${USER_DATADIR-./testdata}
53 TESTDIR
=${USER_TESTDIR-$TESTWD/testrun}
54 SCHEMADIR
=${USER_SCHEMADIR-./schema}
56 .
*) ABS_SCHEMADIR
="$TESTWD/$SCHEMADIR" ;;
57 *) ABS_SCHEMADIR
="$SCHEMADIR" ;;
60 DBDIR1A
=$TESTDIR/db
.1.a
61 DBDIR1B
=$TESTDIR/db
.1.b
62 DBDIR1C
=$TESTDIR/db
.1.c
64 DBDIR2A
=$TESTDIR/db
.2.a
65 DBDIR2B
=$TESTDIR/db
.2.b
66 DBDIR2C
=$TESTDIR/db
.2.c
68 DBDIR3
=$TESTDIR/db
.3.a
69 DBDIR4
=$TESTDIR/db
.4.a
70 DBDIR5
=$TESTDIR/db
.5.a
71 DBDIR6
=$TESTDIR/db
.6.a
72 SQLCONCURRENCYDIR
=$DATADIR/sql-concurrency
74 CLIENTDIR
=..
/clients
/tools
75 #CLIENTDIR=/usr/local/bin
78 CONF
=$DATADIR/slapd.conf
79 CONFTWO
=$DATADIR/slapd2.conf
80 CONF2DB
=$DATADIR/slapd-2db.conf
81 MCONF
=$DATADIR/slapd-master.conf
82 COMPCONF
=$DATADIR/slapd-component.conf
83 PWCONF
=$DATADIR/slapd-pw.conf
84 WHOAMICONF
=$DATADIR/slapd-whoami.conf
85 ACLCONF
=$DATADIR/slapd-acl.conf
86 RCONF
=$DATADIR/slapd-referrals.conf
87 SRMASTERCONF
=$DATADIR/slapd-syncrepl-master.conf
88 DSRMASTERCONF
=$DATADIR/slapd-deltasync-master.conf
89 DSRSLAVECONF
=$DATADIR/slapd-deltasync-slave.conf
90 PPOLICYCONF
=$DATADIR/slapd-ppolicy.conf
91 PROXYCACHECONF
=$DATADIR/slapd-proxycache.conf
92 CACHEMASTERCONF
=$DATADIR/slapd-cache-master.conf
93 R1SRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-refresh1.conf
94 R2SRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-refresh2.conf
95 P1SRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-persist1.conf
96 P2SRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-persist2.conf
97 P3SRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-persist3.conf
98 REFSLAVECONF
=$DATADIR/slapd-ref-slave.conf
99 SCHEMACONF
=$DATADIR/slapd-schema.conf
100 GLUECONF
=$DATADIR/slapd-glue.conf
101 REFINTCONF
=$DATADIR/slapd-refint.conf
102 RETCODECONF
=$DATADIR/slapd-retcode.conf
103 UNIQUECONF
=$DATADIR/slapd-unique.conf
104 LIMITSCONF
=$DATADIR/slapd-limits.conf
105 DNCONF
=$DATADIR/slapd-dn.conf
106 EMPTYDNCONF
=$DATADIR/slapd-emptydn.conf
107 IDASSERTCONF
=$DATADIR/slapd-idassert.conf
108 LDAPGLUECONF1
=$DATADIR/slapd-ldapglue.conf
109 LDAPGLUECONF2
=$DATADIR/slapd-ldapgluepeople.conf
110 LDAPGLUECONF3
=$DATADIR/slapd-ldapgluegroups.conf
111 RELAYCONF
=$DATADIR/slapd-relay.conf
112 CHAINCONF1
=$DATADIR/slapd-chain1.conf
113 CHAINCONF2
=$DATADIR/slapd-chain2.conf
114 GLUESYNCCONF1
=$DATADIR/slapd-glue-syncrepl1.conf
115 GLUESYNCCONF2
=$DATADIR/slapd-glue-syncrepl2.conf
116 SQLCONF
=$DATADIR/slapd-sql.conf
117 SQLSRMASTERCONF
=$DATADIR/slapd-sql-syncrepl-master.conf
118 TRANSLUCENTLOCALCONF
=$DATADIR/slapd-translucent-local.conf
119 TRANSLUCENTREMOTECONF
=$DATADIR/slapd-translucent-remote.conf
120 METACONF
=$DATADIR/slapd-meta.conf
121 METACONF1
=$DATADIR/slapd-meta-target1.conf
122 METACONF2
=$DATADIR/slapd-meta-target2.conf
123 GLUELDAPCONF
=$DATADIR/slapd-glue-ldap.conf
124 ACICONF
=$DATADIR/slapd-aci.conf
125 VALSORTCONF
=$DATADIR/slapd-valsort.conf
126 DYNLISTCONF
=$DATADIR/slapd-dynlist.conf
127 RSLAVECONF
=$DATADIR/slapd-repl-slave-remote.conf
128 PLSRSLAVECONF
=$DATADIR/slapd-syncrepl-slave-persist-ldap.conf
129 PLSRMASTERCONF
=$DATADIR/slapd-syncrepl-multiproxy.conf
130 DDSCONF
=$DATADIR/slapd-dds.conf
131 PASSWDCONF
=$DATADIR/slapd-passwd.conf
132 UNDOCONF
=$DATADIR/slapd-config-undo.conf
133 NAKEDCONF
=$DATADIR/slapd-config-naked.conf
135 DYNAMICCONF
=$DATADIR/slapd-dynamic.ldif
138 CONF1
=$TESTDIR/slapd
.1.conf
139 CONF2
=$TESTDIR/slapd
.2.conf
140 CONF3
=$TESTDIR/slapd
.3.conf
141 CONF4
=$TESTDIR/slapd
.4.conf
142 CONF5
=$TESTDIR/slapd
.5.conf
143 CONF6
=$TESTDIR/slapd
.6.conf
144 ADDCONF
=$TESTDIR/slapadd.conf
145 CONFLDIF
=$TESTDIR/slapd-dynamic.ldif
147 LOG1
=$TESTDIR/slapd
.1.log
148 LOG2
=$TESTDIR/slapd
.2.log
149 LOG3
=$TESTDIR/slapd
.3.log
150 LOG4
=$TESTDIR/slapd
.4.log
151 LOG5
=$TESTDIR/slapd
.5.log
152 LOG6
=$TESTDIR/slapd
.6.log
153 SLAPADDLOG1
=$TESTDIR/slapadd
.1.log
154 SLURPLOG
=$TESTDIR/slurp.log
156 CONFIGPWF
=$TESTDIR/configpw
159 TOOLARGS
="-x $LDAP_TOOLARGS"
163 LDIFFILTER
=$SRCDIR/scripts
/acfilter.sh
164 CONFFILTER
=$SRCDIR/scripts
/conf.sh
166 SLAPADD
="$TESTWD/../servers/slapd/slapd -Ta -d 0 $LDAP_VERBOSE"
167 SLAPCAT
="$TESTWD/../servers/slapd/slapd -Tc -d 0 $LDAP_VERBOSE"
168 SLAPINDEX
="$TESTWD/../servers/slapd/slapd -Ti -d 0 $LDAP_VERBOSE"
169 SLAPPASSWD
="$TESTWD/../servers/slapd/slapd -Tpasswd"
172 # NOTE: -u/-c is not that portable...
177 SLAPD
="$TESTWD/../servers/slapd/slapd -s0"
178 LDAPPASSWD
="$CLIENTDIR/ldappasswd $TOOLARGS"
179 LDAPSASLSEARCH
="$CLIENTDIR/ldapsearch $TOOLPROTO $LDAP_TOOLARGS -LLL"
180 LDAPSEARCH
="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS -LLL"
181 LDAPRSEARCH
="$CLIENTDIR/ldapsearch $TOOLPROTO $TOOLARGS"
182 LDAPDELETE
="$CLIENTDIR/ldapdelete $TOOLPROTO $TOOLARGS"
183 LDAPMODIFY
="$CLIENTDIR/ldapmodify $TOOLPROTO $TOOLARGS"
184 LDAPADD
="$CLIENTDIR/ldapmodify -a $TOOLPROTO $TOOLARGS"
185 LDAPMODRDN
="$CLIENTDIR/ldapmodrdn $TOOLPROTO $TOOLARGS"
186 LDAPWHOAMI
="$CLIENTDIR/ldapwhoami $TOOLARGS"
187 LDAPCOMPARE
="$CLIENTDIR/ldapcompare $TOOLARGS"
188 LDAPEXOP
="$CLIENTDIR/ldapexop $TOOLARGS"
189 SLAPDTESTER
=$PROGDIR/slapd-tester
190 LVL
=${SLAPD_DEBUG-261}
192 BASEPORT
=${SLAPD_BASEPORT-9010}
193 PORT1
=`expr $BASEPORT + 1`
194 PORT2
=`expr $BASEPORT + 2`
195 PORT3
=`expr $BASEPORT + 3`
196 PORT4
=`expr $BASEPORT + 4`
197 PORT5
=`expr $BASEPORT + 5`
198 PORT6
=`expr $BASEPORT + 6`
199 URI1
="ldap://${LOCALHOST}:$PORT1/"
200 URI2
="ldap://${LOCALHOST}:$PORT2/"
201 URI3
="ldap://${LOCALHOST}:$PORT3/"
202 URI4
="ldap://${LOCALHOST}:$PORT4/"
203 URI5
="ldap://${LOCALHOST}:$PORT5/"
204 URI6
="ldap://${LOCALHOST}:$PORT6/"
207 LDIF
=$DATADIR/test.ldif
208 LDIFADD1
=$DATADIR/do_add
.1
209 LDIFGLUED
=$DATADIR/test-glued.ldif
210 LDIFORDERED
=$DATADIR/test-ordered.ldif
211 LDIFORDEREDCP
=$DATADIR/test-ordered-cp.ldif
212 LDIFORDEREDNOCP
=$DATADIR/test-ordered-nocp.ldif
213 LDIFBASE
=$DATADIR/test-base.ldif
214 LDIFPASSWD
=$DATADIR/passwd.ldif
215 LDIFWHOAMI
=$DATADIR/test-whoami.ldif
216 LDIFPASSWDOUT
=$DATADIR/passwd-out.ldif
217 LDIFPPOLICY
=$DATADIR/ppolicy.ldif
218 LDIFLANG
=$DATADIR/test-lang.ldif
219 LDIFLANGOUT
=$DATADIR/lang-out.ldif
220 LDIFREF
=$DATADIR/referrals.ldif
221 LDIFREFINT
=$DATADIR/test-refint.ldif
222 LDIFUNIQUE
=$DATADIR/test-unique.ldif
223 LDIFLIMITS
=$DATADIR/test-limits.ldif
224 LDIFDN
=$DATADIR/test-dn.ldif
225 LDIFEMPTYDN1
=$DATADIR/test-emptydn1.ldif
226 LDIFEMPTYDN2
=$DATADIR/test-emptydn2.ldif
227 LDIFIDASSERT1
=$DATADIR/test-idassert1.ldif
228 LDIFIDASSERT2
=$DATADIR/test-idassert2.ldif
229 LDIFLDAPGLUE1
=$DATADIR/test-ldapglue.ldif
230 LDIFLDAPGLUE2
=$DATADIR/test-ldapgluepeople.ldif
231 LDIFLDAPGLUE3
=$DATADIR/test-ldapgluegroups.ldif
232 LDIFCOMPMATCH
=$DATADIR/test-compmatch.ldif
233 LDIFCHAIN1
=$DATADIR/test-chain1.ldif
234 LDIFCHAIN2
=$DATADIR/test-chain2.ldif
235 LDIFTRANSLUCENTDATA
=$DATADIR/test-translucent-data.ldif
236 LDIFTRANSLUCENTCONFIG
=$DATADIR/test-translucent-config.ldif
237 LDIFTRANSLUCENTADD
=$DATADIR/test-translucent-add.ldif
238 LDIFTRANSLUCENTMERGED
=$DATADIR/test-translucent-merged.ldif
239 LDIFMETA
=$DATADIR/test-meta.ldif
240 LDIFVALSORT
=$DATADIR/test-valsort.ldif
241 SQLADD
=$DATADIR/sql-add.ldif
246 BASEDN
="dc=example,dc=com"
247 MANAGERDN
="cn=Manager,$BASEDN"
248 UPDATEDN
="cn=Replica,$BASEDN"
250 BABSDN
="cn=Barbara Jensen,ou=Information Technology DivisioN,ou=People,$BASEDN"
251 BJORNSDN
="cn=Bjorn Jensen,ou=Information Technology DivisioN,ou=People,$BASEDN"
252 JAJDN
="cn=James A Jones 1,ou=Alumni Association,ou=People,$BASEDN"
253 JOHNDDN
="cn=John Doe,ou=Information Technology Division,ou=People,$BASEDN"
254 MELLIOTDN
="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
255 REFINTDN
="cn=Manager,o=refint"
256 RETCODEDN
="ou=RetCodes,$BASEDN"
257 UNIQUEDN
="cn=Manager,o=unique"
258 EMPTYDNDN
="cn=Manager,c=US"
259 TRANSLUCENTROOT
="o=translucent"
260 TRANSLUCENTUSER
="ou=users,o=translucent"
261 TRANSLUCENTDN
="uid=binder,o=translucent"
262 TRANSLUCENTPASSWD
="bindtest"
263 METABASEDN
="ou=Meta,$BASEDN"
264 METAMANAGERDN
="cn=Manager,$METABASEDN"
265 VALSORTDN
="cn=Manager,o=valsort"
266 VALSORTBASEDN
="o=valsort"
269 SEARCHOUT
=$TESTDIR/ldapsearch.out
270 SEARCHOUT2
=$TESTDIR/ldapsearch2.out
271 SEARCHFLT
=$TESTDIR/ldapsearch.flt
272 SEARCHFLT2
=$TESTDIR/ldapsearch2.flt
273 LDIFFLT
=$TESTDIR/ldif.flt
274 TESTOUT
=$TESTDIR/test.out
275 INITOUT
=$TESTDIR/init.out
276 VALSORTOUT1
=$DATADIR/valsort1.out
277 VALSORTOUT2
=$DATADIR/valsort2.out
278 VALSORTOUT3
=$DATADIR/valsort3.out
280 SERVER1OUT
=$TESTDIR/server1.out
281 SERVER1FLT
=$TESTDIR/server1.flt
282 SERVER2OUT
=$TESTDIR/server2.out
283 SERVER2FLT
=$TESTDIR/server2.flt
284 SERVER3OUT
=$TESTDIR/server3.out
285 SERVER3FLT
=$TESTDIR/server3.flt
286 SERVER4OUT
=$TESTDIR/server4.out
287 SERVER4FLT
=$TESTDIR/server4.flt
288 SERVER5OUT
=$TESTDIR/server5.out
289 SERVER5FLT
=$TESTDIR/server5.flt
290 SERVER6OUT
=$TESTDIR/server6.out
291 SERVER6FLT
=$TESTDIR/server6.flt
293 MASTEROUT
=$SERVER1OUT
294 MASTERFLT
=$SERVER1FLT
296 SLAVE2OUT
=$SERVER3OUT
298 SLAVE2FLT
=$SERVER3FLT
300 # original outputs for cmp
301 PROXYCACHEOUT
=$DATADIR/proxycache.out
302 REFERRALOUT
=$DATADIR/referrals.out
303 SEARCHOUTMASTER
=$DATADIR/search.out.master
304 SEARCHOUTX
=$DATADIR/search.out.xsearch
305 COMPSEARCHOUT
=$DATADIR/compsearch.out
306 MODIFYOUTMASTER
=$DATADIR/modify.out.master
307 ADDDELOUTMASTER
=$DATADIR/adddel.out.master
308 MODRDNOUTMASTER0
=$DATADIR/modrdn.out.master
.0
309 MODRDNOUTMASTER1
=$DATADIR/modrdn.out.master
.1
310 MODRDNOUTMASTER2
=$DATADIR/modrdn.out.master
.2
311 MODRDNOUTMASTER3
=$DATADIR/modrdn.out.master
.3
312 ACLOUTMASTER
=$DATADIR/acl.out.master
313 REPLOUTMASTER
=$DATADIR/repl.out.master
314 MODSRCHFILTERS
=$DATADIR/modify.search.filters
315 CERTIFICATETLS
=$DATADIR/certificate.tls
316 CERTIFICATEOUT
=$DATADIR/certificate.out
317 DNOUT
=$DATADIR/dn.out
318 EMPTYDNOUT1
=$DATADIR/emptydn.out.slapadd
319 EMPTYDNOUT2
=$DATADIR/emptydn.out
320 IDASSERTOUT
=$DATADIR/idassert.out
321 LDAPGLUEOUT
=$DATADIR/ldapglue.out
322 LDAPGLUEANONYMOUSOUT
=$DATADIR/ldapglueanonymous.out
323 RELAYOUT
=$DATADIR/relay.out
324 CHAINOUT
=$DATADIR/chain.out
325 CHAINREFOUT
=$DATADIR/chainref.out
326 CHAINMODOUT
=$DATADIR/chainmod.out
327 GLUESYNCOUT
=$DATADIR/gluesync.out
328 SQLREAD
=$DATADIR/sql-read.out
329 SQLWRITE
=$DATADIR/sql-write.out
330 TRANSLUCENTOUT
=$DATADIR/translucent.search.out
331 METAOUT
=$DATADIR/meta.out
332 METACONCURRENCYOUT
=$DATADIR/metaconcurrency.out
333 MANAGEOUT
=$DATADIR/manage.out
334 SUBTREERENAMEOUT
=$DATADIR/subtree-rename.out
335 ACIOUT
=$DATADIR/aci.out
336 DYNLISTOUT
=$DATADIR/dynlist.out
337 DDSOUT
=$DATADIR/dds.out
338 MEMBEROFOUT
=$DATADIR/memberof.out
339 SHTOOL
="$SRCDIR/../build/shtool"
341 # Just in case we linked the binaries dynamically
342 LD_LIBRARY_PATH
=$TESTWD/..
/libraries
:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH