mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
add a test for binding with non-existing user
This commit is contained in:
parent
7b9fc0e377
commit
0f85864c79
1 changed files with 23 additions and 0 deletions
|
|
@ -671,6 +671,29 @@ case $RC in
|
|||
;;
|
||||
esac
|
||||
|
||||
echo "Binding with non-existing user to database \"$BASEDN\"..."
|
||||
$LDAPWHOAMI -h $LOCALHOST -p $PORT3 \
|
||||
-D "cn=Non-existing User,ou=Same as above,ou=Meta,$BASEDN" \
|
||||
-w bogus >> $TESTOUT 2>&1
|
||||
RC=$?
|
||||
#if test $RC != 0 ; then
|
||||
# echo "WhoAmI failed ($RC)!"
|
||||
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
# exit $RC
|
||||
#fi
|
||||
case $RC in
|
||||
0)
|
||||
echo "WhoAmI should have failed ($RC)!"
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
exit -1
|
||||
;;
|
||||
51)
|
||||
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Comparing to database \"$BASEDN\"..."
|
||||
$LDAPCOMPARE -h $LOCALHOST -p $PORT3 \
|
||||
"cn=Another Added Group,ou=Groups,$BASEDN" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue