diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-01 17:26:32 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-02 07:05:44 +0100 |
commit | cfa33c45675c55689018ee700e07c81566904ea6 (patch) | |
tree | 4a00727ac6cf94fa24045e7c4cb894f20d4f1785 /source3/script | |
parent | 19cfa3e604b5bb8ffa155182d6c24a2fe883e6da (diff) | |
download | samba-cfa33c45675c55689018ee700e07c81566904ea6.tar.gz |
s3-selftest: Add tests for ntlm_auth gss-spnego client and server
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Mar 2 07:05:44 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/script')
-rwxr-xr-x | source3/script/tests/test_ntlm_auth_krb5.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/source3/script/tests/test_ntlm_auth_krb5.sh b/source3/script/tests/test_ntlm_auth_krb5.sh new file mode 100755 index 00000000000..5989d01046a --- /dev/null +++ b/source3/script/tests/test_ntlm_auth_krb5.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +if [ $# -lt 2 ]; then +cat <<EOF +Usage: test_ntlm_auth_s3.sh PYTHON SRC3DIR NTLM_AUTH CCACHE SERVER +EOF +exit 1; +fi + +PYTHON=$1 +SRC3DIR=$2 +NTLM_AUTH=$3 +CCACHE=$4 +SERVER=$5 +shift 5 +ADDARGS="$*" + +incdir=`dirname $0`/../../../testprogs/blackbox +. $incdir/subunit.sh + +failed=0 + +KRB5CCNAME=$CCACHE +export KRB5CCNAME + +# --server-use-winbindd is set so we know it isn't cheating and using the hard-coded passwords + +testit "ntlm_auth with krb5 gss-spnego-client and gss-spnego server" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH $ADDARGS --target-hostname=$SERVER --target-service=host --client-helper=gss-spnego-client --server-helper=gss-spnego --server-use-winbindd || failed=`expr $failed + 1` + + +testok $0 $failed |