Up the debug level for the second run of the test (client side)
[jra/samba/.git] / testsuite / build_farm / basicsmb-domainsec.test
index 0674e75bb82d509575d2b5e39ce582b76702243a..848cf69a7559869080f9e58cdcb5d020cdc0ba9b 100644 (file)
@@ -1,9 +1,27 @@
+
 . basicsmb.fns
 
+test_joindomain() {
+       test_join_domain_password="$1"
+
+       echo "$prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password -d$loglevel"
+       $prefix/bin/net rpc join -S localhost  -U $whoami%$test_join_domain_password -d$loglevel
+       status=$?
+       if [ $status = 0 ]; then
+           echo "'net rpc join' correctly joined the domain"
+       else
+           echo "'net rpc join' failed to join the domain! (status $status)"
+           return 1
+       fi
+       return 0
+}
+
 password=samba
-security=DOMAIN
 (test_smb_conf_setup && test_smbpasswd $password ) || exit 1
 
+test_joindomain $password || exit 1
+
+security=DOMAIN
 test_listfilesauth $security  || exit 1
 test_listfilesnpw $security  || exit 1