sn: User 1
uid: user1
uidNumber: 500
-userPassword: {crypt}675B8Gwn6RJyY
+userPassword: abc
homeDirectory: /home/user1
gidNumber: 10
gecos: User 1
loginShell: /bin/false
gecos: Slave
gidNumber: 100
-userPassword: {crypt}675B8Gwn6RJyY
+userPassword: abc
cn: Slave
sn: Slave
loginShell: /bin/false
homeDirectory: /home/user2
gidNumber: 100
-userPassword: {crypt}675B8Gwn6RJyY
+userPassword: abc
dn: ou=Special,dc=example,dc=com
objectClass: organizationalUnit
homeDirectory: /home/special1
gecos: Special1
loginShell: /bin/false
-userPassword: {crypt}675B8Gwn6RJyY
+userPassword: abc
gidNumber: 100
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"
+
+test $KILLSERVERS != no && wait
+
exit 0
# Indices to maintain
#bdb#index default pres,eq
+#bdb#index objectClass eq
#bdb#index sn pres,eq,sub
#hdb#index default pres,eq
+#hdb#index objectClass eq
#hdb#index sn pres,eq,sub
database @BACKEND@
# Indices to maintain
#bdb#index default pres,eq
-#bdb#index sn pres,eq,sub
#bdb#index objectClass eq
+#bdb#index sn pres,eq,sub
#hdb#index default pres,eq
-#hdb#index sn pres,eq,sub
#hdb#index objectClass eq
+#hdb#index sn pres,eq,sub
exit $RC
fi
-echo "Running slapadd to create glue entry..."
-. $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf > $CONF2
-#$SLAPADD -f $CONF2 << EODATA
-#dn: dc=example,dc=com
-#objectClass: domain
-#dc: example
-#EODATA
-#RC=$?
-#if test $RC != 0 ; then
-# echo "slapadd failed ($RC)!"
-# test $KILLSERVERS != no && kill -HUP $KILLPIDS
-# exit $RC
-#fi
-
echo "Starting proxy slapd on TCP/IP port $PORT2..."
+. $CONFFILTER $BACKEND $MONITORDB < $ITSDIR/slapd.conf > $CONF2
$SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
PROXYPID=$!
if test $WAIT != 0 ; then
fi
SLEEP=2
-echo "Stopping the provider and sleeping $SLEEP seconds..."
+echo "Stopping the server and sleeping $SLEEP seconds..."
kill -HUP "$SERVERPID"
wait $SERVERPID
sleep $SLEEP
SHTOOL="$SRCDIR/../build/shtool"
TB=`$SHTOOL echo -e "%B"`
TN=`$SHTOOL echo -e "%b"`
-SLEEPTIME=10
echo "#######################################################################"
echo "### ###"
fi
echo ">>>>> waiting $SLEEPTIME seconds for things to exit"
- sleep $SLEEPTIME
echo ""
done