Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / openldap / dist / tests / scripts / conf.sh
blob78fba31885e356dde0389125e3a23e0e33af6183
1 #! /bin/sh
2 # $OpenLDAP: pkg/ldap/tests/scripts/conf.sh,v 1.49.2.8 2008/02/11 23:26:50 kurt Exp $
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2008 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
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>.
15 MONMOD=nomod
16 if [ x"$MONITORDB" = xyes -o x"$MONITORDB" = xmod ] ; then
17 MON=monitor
18 if [ $MONITORDB = mod ] ; then
19 MONMOD=monitormod
21 else
22 MON=nomonitor
24 if [ x"$WITH_SASL" = x"yes" -a x"$USE_SASL" != x"no" ] ; then
25 SASL="sasl"
26 if [ x"$USE_SASL" = x"yes" ] ; then
27 USE_SASL=DIGEST-MD5
29 SASL_MECH="\"saslmech=$USE_SASL\""
30 else
31 SASL="nosasl"
32 SASL_MECH=
34 sed -e "s/@BACKEND@/${BACKEND}/" \
35 -e "s/^#${BACKEND}#//" \
36 -e "s/@RELAY@/${RELAY}/" \
37 -e "s/^#relay-${RELAY}#//" \
38 -e "s/^#${BACKENDTYPE}#//" \
39 -e "s/^#${AC_ldap}#//" \
40 -e "s/^#${AC_meta}#//" \
41 -e "s/^#${AC_relay}#//" \
42 -e "s/^#${AC_sql}#//" \
43 -e "s/^#${RDBMS}#//" \
44 -e "s/^#${AC_accesslog}#//" \
45 -e "s/^#${AC_dds}#//" \
46 -e "s/^#${AC_dynlist}#//" \
47 -e "s/^#${AC_memberof}#//" \
48 -e "s/^#${AC_pcache}#//" \
49 -e "s/^#${AC_ppolicy}#//" \
50 -e "s/^#${AC_refint}#//" \
51 -e "s/^#${AC_retcode}#//" \
52 -e "s/^#${AC_rwm}#//" \
53 -e "s/^#${AC_syncprov}#//" \
54 -e "s/^#${AC_translucent}#//" \
55 -e "s/^#${AC_unique}#//" \
56 -e "s/^#${AC_valsort}#//" \
57 -e "s/^#${MON}#//" \
58 -e "s/^#${MONMOD}#//" \
59 -e "s/^#${SASL}#//" \
60 -e "s/^#${ACI}#//" \
61 -e "s;@URI1@;${URI1};" \
62 -e "s;@URI2@;${URI2};" \
63 -e "s;@URI3@;${URI3};" \
64 -e "s;@URI4@;${URI4};" \
65 -e "s;@URI5@;${URI5};" \
66 -e "s;@URI6@;${URI6};" \
67 -e "s;@PORT1@;${PORT1};" \
68 -e "s;@PORT2@;${PORT2};" \
69 -e "s;@PORT3@;${PORT3};" \
70 -e "s;@PORT4@;${PORT4};" \
71 -e "s;@PORT5@;${PORT5};" \
72 -e "s;@PORT6@;${PORT6};" \
73 -e "s/@SASL_MECH@/${SASL_MECH}/" \
74 -e "s/@CACHETTL@/${CACHETTL}/" \
75 -e "s/@NCACHETTL@/${NCACHETTL}/" \
76 -e "s/@SCACHETTL@/${SCACHETTL}/" \
77 -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/" \
78 -e "s;@TESTDIR@;${TESTDIR};" \
79 -e "s;@DATADIR@;${DATADIR};" \
80 -e "s;@SCHEMADIR@;${SCHEMADIR};"