]> git.sur5r.net Git - openldap/blob - tests/scripts/conf.sh
ITS#8573 Add missing URI variables for tests
[openldap] / tests / scripts / conf.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2018 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.
11 ##
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
20         fi
21 else
22         MON=nomonitor
23 fi
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
28         fi
29         SASL_MECH="\"saslmech=$USE_SASL\""
30 else
31         SASL="nosasl"
32         SASL_MECH=
33 fi
34 sed -e "s/@BACKEND@/${BACKEND}/"                        \
35         -e "s/^#${BACKEND}#//"                          \
36         -e "/^#~/s/^#[^#]*~${BACKEND}~[^#]*#/#omit: /"  \
37                 -e "s/^#~[^#]*~#//"                     \
38         -e "s/@RELAY@/${RELAY}/"                        \
39         -e "s/^#relay-${RELAY}#//"                      \
40         -e "s/^#${BACKENDTYPE}#//"                      \
41         -e "s/^#${AC_ldap}#//"                          \
42         -e "s/^#${AC_meta}#//"                          \
43         -e "s/^#${AC_relay}#//"                         \
44         -e "s/^#${AC_sql}#//"                           \
45                 -e "s/^#${RDBMS}#//"                    \
46         -e "s/^#${AC_accesslog}#//"                     \
47         -e "s/^#${AC_autoca}#//"                        \
48         -e "s/^#${AC_dds}#//"                           \
49         -e "s/^#${AC_dynlist}#//"                       \
50         -e "s/^#${AC_memberof}#//"                      \
51         -e "s/^#${AC_pcache}#//"                        \
52         -e "s/^#${AC_ppolicy}#//"                       \
53         -e "s/^#${AC_refint}#//"                        \
54         -e "s/^#${AC_retcode}#//"                       \
55         -e "s/^#${AC_rwm}#//"                           \
56         -e "s/^#${AC_syncprov}#//"                      \
57         -e "s/^#${AC_translucent}#//"                   \
58         -e "s/^#${AC_unique}#//"                        \
59         -e "s/^#${AC_valsort}#//"                       \
60         -e "s/^#${INDEXDB}#//"                          \
61         -e "s/^#${MAINDB}#//"                           \
62         -e "s/^#${MON}#//"                              \
63         -e "s/^#${MONMOD}#//"                           \
64         -e "s/^#${SASL}#//"                             \
65         -e "s/^#${ACI}#//"                              \
66         -e "s;@URI1@;${URI1};"                          \
67         -e "s;@URI2@;${URI2};"                          \
68         -e "s;@URI3@;${URI3};"                          \
69         -e "s;@URI4@;${URI4};"                          \
70         -e "s;@URI5@;${URI5};"                          \
71         -e "s;@URI6@;${URI6};"                          \
72         -e "s;@PORT1@;${PORT1};"                        \
73         -e "s;@PORT2@;${PORT2};"                        \
74         -e "s;@PORT3@;${PORT3};"                        \
75         -e "s;@PORT4@;${PORT4};"                        \
76         -e "s;@PORT5@;${PORT5};"                        \
77         -e "s;@PORT6@;${PORT6};"                        \
78         -e "s;@SURI1@;${SURI1};"                        \
79         -e "s;@SURI2@;${SURI2};"                        \
80         -e "s;@SURI3@;${SURI3};"                        \
81         -e "s;@SURI4@;${SURI4};"                        \
82         -e "s;@SURI5@;${SURI5};"                        \
83         -e "s;@SURI6@;${SURI6};"                        \
84         -e "s;@URIP1@;${URIP1};"                        \
85         -e "s;@URIP2@;${URIP2};"                        \
86         -e "s;@URIP3@;${URIP3};"                        \
87         -e "s;@URIP4@;${URIP4};"                        \
88         -e "s;@URIP5@;${URIP5};"                        \
89         -e "s;@URIP6@;${URIP6};"                        \
90         -e "s;@SURIP1@;${SURIP1};"                      \
91         -e "s;@SURIP2@;${SURIP2};"                      \
92         -e "s;@SURIP3@;${SURIP3};"                      \
93         -e "s;@SURIP4@;${SURIP4};"                      \
94         -e "s;@SURIP5@;${SURIP5};"                      \
95         -e "s;@SURIP6@;${SURIP6};"                      \
96         -e "s/@SASL_MECH@/${SASL_MECH}/"                \
97         -e "s;@TESTDIR@;${TESTDIR};"                    \
98         -e "s;@TESTWD@;${TESTWD};"                      \
99         -e "s;@DATADIR@;${DATADIR};"                    \
100         -e "s;@SCHEMADIR@;${SCHEMADIR};"                \
101         -e "/^#/d"