diff options
Diffstat (limited to 'testsuite/build_farm/basicsmb-domainsec.test')
-rw-r--r-- | testsuite/build_farm/basicsmb-domainsec.test | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/testsuite/build_farm/basicsmb-domainsec.test b/testsuite/build_farm/basicsmb-domainsec.test index ff184c4c7f..5dd005a6ee 100644 --- a/testsuite/build_farm/basicsmb-domainsec.test +++ b/testsuite/build_farm/basicsmb-domainsec.test @@ -1,19 +1,16 @@ -if [ $whoami != "root" ]; then - exit 0; -fi . basicsmb.fns test_joindomain() { test_joindomain_password="$1" - echo "$prefix/bin/smbpasswd -L -j TESTWG -U $whoami%$test_join_domain_password" - $prefix/bin/smbpasswd -L -j TESTWG -U $whoami%$test_join_domain_password + echo "$prefix/bin/net rpc join -S localhost -U $whoami%$test_join_domain_password" + $prefix/bin/net rpc join -S localhost -U $whoami%$test_join_domain_password status=$? if [ $status = 0 ]; then - echo "smbpasswd correctly joined the domain ($workgroup)" + echo "'net rpc join' correctly joined the domain ($workgroup)" else - echo "smbpasswd failed to join the domain ($workgroup)! (status $status)" + echo "'net rpc join' failed to join the domain ($workgroup)! (status $status)" return 1 fi return 0 |