5 Usage: test_echo.sh SERVER USERNAME PASSWORD DOMAIN
17 .
$incdir/test_functions.sh
19 transports
="ncacn_np ncacn_ip_tcp"
20 if [ $server = "localhost" ]; then
21 transports
="ncalrpc $transports"
25 for transport
in $transports; do
26 for bindoptions
in connect sign seal sign
,seal validate padcheck bigendian bigendian
,seal
; do
28 "--option=socket:testnonblock=True --option=torture:echo_TestSleep=no" \
29 "--option=ntlmssp_client:ntlm2=yes --option=torture:echo_TestSleep=no" \
30 "--option=ntlmssp_client:ntlm2=no --option=torture:echo_TestSleep=no" \
31 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:128bit=no --option=torture:echo_TestSleep=no" \
32 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:128bit=no --option=torture:echo_TestSleep=no" \
33 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:keyexchange=no --option=torture:echo_TestSleep=no" \
34 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:keyexchange=no --option=torture:echo_TestSleep=no" \
35 "--option=clientntlmv2auth=yes --option=ntlmssp_client:keyexchange=no --option=torture:echo_TestSleep=no" \
36 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=yes --option=torture:echo_TestSleep=no" \
37 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:echo_TestSleep=no" \
39 name
="RPC-ECHO on $transport with $bindoptions and $ntlmoptions"
40 testit
"$name" bin
/smbtorture
$TORTURE_OPTIONS $transport:"$server[$bindoptions]" $ntlmoptions -U"$username"%"$password" -W $domain RPC-ECHO
"$*" || failed
=`expr $failed + 1`
45 # separately test the print option - its v slow
46 name
="RPC-ECHO with print option"
47 testit
"$name" bin
/smbtorture
$TORTURE_OPTIONS ncacn_np
:"$server[print]" -U"$username"%"$password" -W $domain RPC-ECHO
"$*" || failed
=`expr $failed + 1`