# ATTENTION:
java.lang.NullPointerException # Please read spnegoReadme first to setup the testing # environment needed
# the following ENV should be adjusted to match your environment
WWW_REALM=JSL.BEIJING
WWW_KDC=jsl-bjlab1.jsl.beijing
WWW_URL=http://jsl-bjlab1.jsl.beijing/1.txt
TEST_NAME="Authenticate no fallback"
KUSER_PASS=$BAD_KPASS
AUTH_PREF=-Dhttp.auth.preference=Negotiate
runonce # will fail # first 40X and ask for authen i cannot author-neg and fail with IO_EXCEPTION
grep -i "$FILE_CONTENT" out.log > /dev/null && exit $LINENO
grep -i "$HEADER_40X" err.log > /dev/null || exit $LINENO
grep -i "$AUTH_ANY_REQUEST" err.log > /dev/null && exit $LINENO
grep -i "$IO_EXCEPTION" err.log > /dev/null || exit $LINENO
# bad kpass fallback to basic, but bad pass
TEST_NAME="Authenticate fallback but still cannot go on"
KUSER_PASS=$BAD_KPASS
USER_PASS=$BAD_PASS
AUTH_PREF=
runonce # will fail # first 40X and ask for authen i cannot author-neg and author-basic again and again and fail with PROTO_EXCEPTION
grep -i "$FILE_CONTENT" out.log > /dev/null && exit $LINENO
grep -i "$HEADER_40X" err.log > /dev/null || exit $LINENO
grep -i "$AUTH_NEG_REQUEST" err.log > /dev/null && exit $LINENO
grep -i "$AUTH_BASIC_REQUEST" err.log > /dev/null || exit $LINENO
grep -i "$PROTO_EXCEPTION" err.log > /dev/null || exit $LINENO
fi
}
function testWWW {
# WWW Part
AUTH_TYPE=WWW
USE_REALM=$WWW_REALM
USE_KDC=$WWW_KDC
USE_URL=$WWW_URL
EXTRA_PARA=
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.