ldb: version 1.1.20
[Samba.git] / source3 / script / tests / test_rpcclient_samlogon.sh
blob01af7f80a152625d6b6ceb7b25194632b7837a32
1 #!/bin/sh
3 if [ $# -lt 3 ]; then
4 cat <<EOF
5 Usage: test_rpcclient_samlogon.sh USERNAME PASSWORD binding <rpcclient commands>
6 EOF
7 exit 1;
8 fi
10 USERNAME="$1"
11 PASSWORD="$2"
12 shift 2
13 ADDARGS="$*"
15 rpcclient_samlogon()
17 $VALGRIND $BINDIR/rpcclient -U% -c "samlogon $USERNAME $PASSWORD;samlogon $USERNAME $PASSWORD" $@
21 incdir=`dirname $0`/../../../testprogs/blackbox
22 . $incdir/subunit.sh
23 testit "rpcclient dsenumdomtrusts" $VALGRIND $BINDIR/rpcclient $ADDARGS -U% -c "dsenumdomtrusts" || failed=`expr $failed + 1`
24 testit "rpcclient getdcsitecoverage" $VALGRIND $BINDIR/rpcclient $ADDARGS -U% -c "getdcsitecoverage" || failed=`expr $failed + 1`
25 testit "rpcclient samlogon" rpcclient_samlogon $ADDARGS || failed=`expr $failed +1`
27 testok $0 $failed