-e "s;@PORT4@;${PORT4};" \
-e "s;@PORT5@;${PORT5};" \
-e "s;@PORT6@;${PORT6};" \
- -e "s/@CONFIGPW@/${CONFIGPW}/" \
-e "s/@SASL_MECH@/${SASL_MECH}/" \
-e "s/@CACHETTL@/${CACHETTL}/" \
-e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/" \
SLAPADDLOG1=$TESTDIR/slapadd.1.log
SLURPLOG=$TESTDIR/slurp.log
-CONFIGPWF=$TESTDIR/configpw
+CONFIGPWF=./configpw
# args
TOOLARGS="-x $LDAP_TOOLARGS"
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-PASSWD=`cat configpw`
LVL=-1
PERSONAL="(objectClass=inetOrgPerson)"
NOWHERE="/dev/null"
echo "Dynamically configuring local slapd without translucent_no_glue..."
-$LDAPMODIFY -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD <<EOF
+$LDAPMODIFY -D cn=config -H $URI2 -y $CONFIGPWF <<EOF
dn: olcOverlay={0}translucent,olcDatabase={2}bdb,cn=config
changetype: modify
replace: olcTranslucentNoGlue
echo "Dynamically configuring local slapd with translucent_no_glue and translucent_string..."
-$LDAPMODIFY -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD <<EOF
+$LDAPMODIFY -D cn=config -H $URI2 -y $CONFIGPWF <<EOF
dn: olcOverlay={0}translucent,olcDatabase={2}bdb,cn=config
changetype: modify
replace: olcTranslucentNoGlue
mkdir -p $TESTDIR $DBDIR1
-$SLAPPASSWD -g -n > $CONFIGPWF
-RC=$?
-if test $RC != 0 ; then
- echo "slappasswd failed ($RC)!"
- exit $RC
-fi
-read CONFIGPW < $CONFIGPWF
-
echo "Running slapadd to build slapd database..."
. $CONFFILTER $BACKEND $MONITORDB < $VALSORTCONF > $CONF1
$SLAPADD -f $CONF1 -l $LDIFVALSORT