summaryrefslogtreecommitdiff
path: root/source3/script/tests/test_ntlm_auth_diagnostics.sh
blob: 6e0c3eef42bad1d0da22112ace9be3b6335b9970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

if [ $# -lt 1 ]; then
cat <<EOF
Usage: test_ntlm_auth_diagnostics.sh NTLM_AUTH DOMAIN USERNAME PASSWORD
EOF
exit 1;
fi

NTLM_AUTH=$1
DOMAIN=$2
USERNAME=$3
PASSWORD=$4
shift 4

ADDARGS="$*"

incdir=`dirname $0`/../../../testprogs/blackbox
. $incdir/subunit.sh

testit "ntlm_auth" $VALGRIND $NTLM_AUTH --domain=$DOMAIN --username=$USERNAME --password=$PASSWORD --diagnostics $ADDARGS || failed=`expr $failed + 1`

testok $0 $failed