s3: Remove unnecessary ()
[Samba/gebeck_regimport.git] / source3 / script / tests / test_ntlm_auth_krb5.sh
blob5989d01046a0b8bdff871aa675c7901180b50925
1 #!/bin/sh
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
10 PYTHON=$1
11 SRC3DIR=$2
12 NTLM_AUTH=$3
13 CCACHE=$4
14 SERVER=$5
15 shift 5
16 ADDARGS="$*"
18 incdir=`dirname $0`/../../../testprogs/blackbox
19 . $incdir/subunit.sh
21 failed=0
23 KRB5CCNAME=$CCACHE
24 export KRB5CCNAME
26 # --server-use-winbindd is set so we know it isn't cheating and using the hard-coded passwords
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`
31 testok $0 $failed