mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Test anonymous whoami
This commit is contained in:
parent
ca8ab9d809
commit
a77c0ce55c
1 changed files with 12 additions and 3 deletions
|
|
@ -46,9 +46,18 @@ for i in 0 1 2 3 4 5; do
|
|||
sleep 5
|
||||
done
|
||||
|
||||
echo "Testing ldapwhoami ..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT \
|
||||
-D "$MANAGERDN" -w $PASSWD
|
||||
echo "Testing ldapwhoami as anonymous..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT
|
||||
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
echo "ldapwhoami failed ($RC)!"
|
||||
kill -HUP $PID
|
||||
exit $RC
|
||||
fi
|
||||
|
||||
echo "Testing ldapwhoami as ${MANAGERDN}..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT -D "$MANAGERDN" -w $PASSWD
|
||||
|
||||
RC=$?
|
||||
if test $RC != 0 ; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue