From: Olly Betts Date: Tue, 23 Oct 2018 22:46:11 +0000 (+1300) Subject: New testcase samba3.blackbox.net_rpc_join_creds X-Git-Tag: tdb-1.3.17~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=669249ae93bd492559b25539830773af3fa5cca7;p=thirdparty%2Fsamba.git New testcase samba3.blackbox.net_rpc_join_creds Tests that you can now use a credentials file with net. Signed-off-by: Olly Betts Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source3/script/tests/test_net_rpc_join_creds.sh b/source3/script/tests/test_net_rpc_join_creds.sh new file mode 100755 index 00000000000..f47dce4a1ea --- /dev/null +++ b/source3/script/tests/test_net_rpc_join_creds.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +if [ $# -lt 5 ]; then +cat < "$credsfile" +testit "net_rpc_join_creds" $VALGRIND $BINDIR/net rpc join -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private -A"$credsfile" $ADDARGS || failed=`expr $failed + 1` +testit "net_rpc_testjoin_creds" $VALGRIND $BINDIR/net rpc testjoin -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1` +testit "net_rpc_changetrustpw_creds" $VALGRIND $BINDIR/net rpc changetrustpw -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1` +testit "net_rpc_testjoin2_creds" $VALGRIND $BINDIR/net rpc testjoin -S $SERVER --option=netbiosname=netrpcjointest --option=domainlogons=yes --option=privatedir=$PREFIX/private $ADDARGS || failed=`expr $failed + 1` +rm -f $credsfile + +testok $0 $failed diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index bfe875e19fa..1dfe4cdf184 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -718,6 +718,10 @@ plantestsuite("samba3.blackbox.net_rpc_oldjoin", "nt4_dc:local", [os.path.join(samba3srcdir, "script/tests/test_net_rpc_oldjoin.sh"), "$SERVER", "$PREFIX/net_rpc_oldjoin", "$SMB_CONF_PATH"]) +plantestsuite("samba3.blackbox.net_rpc_join_creds", "nt4_dc", + [os.path.join(samba3srcdir, "script/tests/test_net_rpc_join_creds.sh"), + "$DOMAIN", "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_rpc_join_creds", + configuration]) plantestsuite("samba3.blackbox.rpcclient_srvsvc", "simpleserver", [os.path.join(samba3srcdir, "script/tests/test_rpcclientsrvsvc.sh"),