mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 00:02:53 -05:00
Check return of ldapadd(1)
This commit is contained in:
parent
8c2ceeb605
commit
bf987dc8fb
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue