#ldapmod#modulepath ../servers/slapd/back-ldap/
#ldapmod#moduleload back_ldap.la
+# We don't need any access to this DSA
+restrict all
+
#######################################################################
# consumer proxy database definitions
#######################################################################
database ldap
-restrict all
suffix "dc=example,dc=com"
rootdn "cn=Whoever"
uri @URI2@
$LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT3 \
'(objectClass=*)' > /dev/null 2>&1
RC=$?
- if test $RC = 0 ; then
+ if test $RC = 0 -o $RC = 53 ; then
break
fi
echo "Waiting 5 seconds for slapd to start..."
sleep 5
done
-if test $RC != 0 ; then
+case $RC in
+0 )
+ echo "ldapsearch should have failed ($RC)!"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit -1
+ ;;
+53)
+ ;;
+*)
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
-fi
+ ;;
+esac
echo "Using ldapadd to populate the master directory..."
$LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \