summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb-domainsec-nt4.test
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/build_farm/basicsmb-domainsec-nt4.test')
-rw-r--r--testsuite/build_farm/basicsmb-domainsec-nt4.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/build_farm/basicsmb-domainsec-nt4.test b/testsuite/build_farm/basicsmb-domainsec-nt4.test
new file mode 100644
index 00000000000..4e68acabec5
--- /dev/null
+++ b/testsuite/build_farm/basicsmb-domainsec-nt4.test
@@ -0,0 +1,28 @@
+. basicsmb.fns
+
+test_joindomain_nt4() {
+
+ echo $prefix/bin/smbpasswd -L -a -m buildfarm$
+ $prefix/bin/smbpasswd -L -a -m buildfarm$
+
+ echo $prefix/bin/net rpc oldjoin -S localhost
+ $prefix/bin/net rpc oldjoin -S localhost
+ status=$?
+ if [ $status = 0 ]; then
+ echo "'net rpc oldjoin' correctly joined the domain"
+ else
+ echo "'net rpc oldjoin' 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_nt4 $password || exit 1
+
+test_listfilesauth $security || exit 1
+test_listfilesnpw $security || exit 1
+