Remove ntdb from scripts
[Samba.git] / source3 / script / tests / test_ntlm_auth_krb5.sh
blob773cb575811dbd3db7d7bfe9034e706b8ea0d619
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`
30 echo YR| testit "ntlm_auth with krb5 and an invalid keytab" $NTLM_AUTH --helper-protocol=gss-spnego --option=security=ads --option=kerberosmethod='dedicatedkeytab' --option=dedicatedkeytabfile=FILE:`pwd`/$CCACHE.keytab-does-not-exist || failed=`expr $failed + 1`
32 testok $0 $failed