s3: piddir creation fix part 2.
[ira/wip.git] / source3 / script / tests / test_ntlm_auth_krb5.sh
1 #!/bin/sh
2
3 if [ $# -lt 2 ]; then
4 cat <<EOF
5 Usage: test_ntlm_auth_s3.sh PYTHON SRC3DIR NTLM_AUTH CCACHE SERVER
6 EOF
7 exit 1;
8 fi
9
10 PYTHON=$1
11 SRC3DIR=$2
12 NTLM_AUTH=$3
13 CCACHE=$4
14 SERVER=$5
15 shift 5
16 ADDARGS="$*"
17
18 incdir=`dirname $0`/../../../testprogs/blackbox
19 . $incdir/subunit.sh
20
21 failed=0
22
23 KRB5CCNAME=$CCACHE
24 export KRB5CCNAME
25
26 # --server-use-winbindd is set so we know it isn't cheating and using the hard-coded passwords
27
28 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`
29
30
31 testok $0 $failed