Skip to content
Snippets Groups Projects
Commit bf987dc8 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Check return of ldapadd(1)

parent 8c2ceeb6
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,12 @@ fi
echo "Loading database..."
$LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD -c -f $LDIFDN > \
/dev/null 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapadd failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
echo "Searching database..."
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 > $SEARCHOUT 2>&1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment