diff options
Diffstat (limited to 'source3/script/tests/test_rpcclient_pw_nt_hash.sh')
-rwxr-xr-x | source3/script/tests/test_rpcclient_pw_nt_hash.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/script/tests/test_rpcclient_pw_nt_hash.sh b/source3/script/tests/test_rpcclient_pw_nt_hash.sh index c03d22f1f69..33e49a86f92 100755 --- a/source3/script/tests/test_rpcclient_pw_nt_hash.sh +++ b/source3/script/tests/test_rpcclient_pw_nt_hash.sh @@ -4,10 +4,10 @@ # if [ $# -lt 4 ]; then -cat <<EOF + cat <<EOF Usage: test_rpcclient_pw_nt_hash.sh USERNAME PASSWORD SERVER RPCCLIENT EOF -exit 1; + exit 1 fi USERNAME="$1" @@ -15,13 +15,13 @@ PASSWORD="$2" SERVER="$3" RPCCLIENT="$4" -HASH=`echo -n $PASSWORD | iconv -t utf16le | openssl md4 |cut -d ' ' -f2` +HASH=$(echo -n $PASSWORD | iconv -t utf16le | openssl md4 | cut -d ' ' -f2) RPCCLIENTCMD="$RPCCLIENT $SERVER --pw-nt-hash -U$USERNAME%$HASH -c queryuser" incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh -testit "rpcclient --pw-nt-hash" $RPCCLIENTCMD || failed=`expr $failed + 1` +testit "rpcclient --pw-nt-hash" $RPCCLIENTCMD || failed=$(expr $failed + 1) testok $0 $failed |