| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # tests that should pass against a w2k3 DC, as administrator
|
|---|
| 4 |
|
|---|
| 5 | # add tests to this list as they start passing, so we test
|
|---|
| 6 | # that they stay passing
|
|---|
| 7 | ncacn_np_tests="RPC-SCHANNEL RPC-DSSETUP RPC-EPMAPPER RPC-SAMR RPC-WKSSVC RPC-SRVSVC RPC-EVENTLOG RPC-NETLOGON RPC-LSA RPC-SAMLOGON RPC-SAMSYNC RPC-MULTIBIND RPC-WINREG RPC-SPOOLSS RPC-SPOOLSS-WIN"
|
|---|
| 8 | ncacn_ip_tcp_tests="RPC-SCHANNEL RPC-EPMAPPER RPC-SAMR RPC-NETLOGON RPC-LSA RPC-SAMLOGON RPC-SAMSYNC RPC-MULTIBIND"
|
|---|
| 9 |
|
|---|
| 10 | if [ $# -lt 4 ]; then
|
|---|
| 11 | cat <<EOF
|
|---|
| 12 | Usage: test_w2k3.sh SERVER USERNAME PASSWORD DOMAIN REALM
|
|---|
| 13 | EOF
|
|---|
| 14 | exit 1;
|
|---|
| 15 | fi
|
|---|
| 16 |
|
|---|
| 17 | server="$1"
|
|---|
| 18 | username="$2"
|
|---|
| 19 | password="$3"
|
|---|
| 20 | domain="$4"
|
|---|
| 21 | realm="$5"
|
|---|
| 22 | shift 5
|
|---|
| 23 |
|
|---|
| 24 | incdir=`dirname $0`
|
|---|
| 25 | . $incdir/test_functions.sh
|
|---|
| 26 |
|
|---|
| 27 | OPTIONS="-U$username%$password -W $domain --option realm=$realm"
|
|---|
| 28 |
|
|---|
| 29 | name="RPC-SPOOLSS on ncacn_np"
|
|---|
| 30 | testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_np:"$server" $OPTIONS RPC-SPOOLSS "$*"
|
|---|
| 31 |
|
|---|
| 32 | for bindoptions in padcheck connect sign seal ntlm,sign ntlm,seal $VALIDATE bigendian; do
|
|---|
| 33 | for transport in ncacn_ip_tcp ncacn_np; do
|
|---|
| 34 | case $transport in
|
|---|
| 35 | ncacn_np) tests=$ncacn_np_tests ;;
|
|---|
| 36 | ncacn_ip_tcp) tests=$ncacn_ip_tcp_tests ;;
|
|---|
| 37 | esac
|
|---|
| 38 | for t in $tests; do
|
|---|
| 39 | name="$t on $transport with $bindoptions"
|
|---|
| 40 | testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS $transport:"$server[$bindoptions]" $OPTIONS $t "$*"
|
|---|
| 41 | done
|
|---|
| 42 | done
|
|---|
| 43 | done
|
|---|
| 44 |
|
|---|
| 45 | name="RPC-DRSUAPI on ncacn_ip_tcp with seal"
|
|---|
| 46 | testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal]" $OPTIONS RPC-DRSUAPI "$*"
|
|---|
| 47 | name="RPC-DRSUAPI on ncacn_ip_tcp with seal,bigendian"
|
|---|
| 48 | testit "$name" rpc bin/smbtorture $TORTURE_OPTIONS ncacn_ip_tcp:"$server[seal,bigendian]" $OPTIONS RPC-DRSUAPI "$*"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.