]> git.sur5r.net Git - openldap/blob - tests/scripts/conf.sh
510c461d40a31f36cdf9f3f16dd754aaa578b219
[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-2004 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 if [ x"$MONITORDB" = x"yes" -o x"$MONITORDB" = xmod ] ; then
16         MON=monitor
17         if [ $MONITORDB = mod ] ; then
18                 MONMOD=monitormod
19         else
20                 MONMOD=nomod
21         fi
22 else
23         MON=nomonitor
24 fi
25 USE_SASL=${SLAPD_USE_SASL+yes}
26 if [ x"$WITH_SASL" = x"yes" -a x"$USE_SASL" = x"yes" ] ; then
27         SASL="sasl"
28 else
29         SASL="nosasl"
30 fi
31 sed -e "s/@BACKEND@/${BACKEND}/"                        \
32         -e "s/^#${BACKEND}#//"                          \
33         -e "s/^#${BACKENDTYPE}#//"                      \
34         -e "s/^#${AC_ldap}#//"                          \
35         -e "s/^#${AC_pcache}#//"                        \
36         -e "s/^#${AC_ppolicy}#//"                       \
37         -e "s/^#${AC_refint}#//"                        \
38         -e "s/^#${AC_unique}#//"                        \
39         -e "s/^#${MON}#//"                              \
40         -e "s/^#${MONMOD}#//"                           \
41         -e "s/^#${SASL}#//"                             \
42         -e "s/@CACHETTL@/${CACHETTL}/"                  \
43         -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"