summaryrefslogtreecommitdiff
path: root/testsuite/build_farm/basicsmb-domainsec-nt4.test
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-20 06:23:29 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-20 06:23:29 +0000
commitc16effd5fb4f53a9f900da9be2a94c5468f4677f (patch)
treeb3370b3e952d40355b3e642278370e3ffbf85c7d /testsuite/build_farm/basicsmb-domainsec-nt4.test
parent395454db5d7e911ea418b88250778749463f7247 (diff)
downloadsamba-c16effd5fb4f53a9f900da9be2a94c5468f4677f.tar.gz
samba-c16effd5fb4f53a9f900da9be2a94c5468f4677f.tar.bz2
samba-c16effd5fb4f53a9f900da9be2a94c5468f4677f.zip
Add and modify some of the various tests I have had sitting around here for a
little while. This should give us a bit more coverage. Andrew Bartlett (This used to be commit 9e5a1d1623872a598c936e596270abe519c36e97)
Diffstat (limited to 'testsuite/build_farm/basicsmb-domainsec-nt4.test')
-rw-r--r--testsuite/build_farm/basicsmb-domainsec-nt4.test31
1 files changed, 31 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 0000000000..933f8f9804
--- /dev/null
+++ b/testsuite/build_farm/basicsmb-domainsec-nt4.test
@@ -0,0 +1,31 @@
+if [ $whoami != "root" ]; then
+ exit 0;
+fi
+
+. basicsmb.fns
+
+test_joindomain_nt4() {
+
+ smbpasswd -a -m buildfarm$
+
+ echo $prefix/bin/smbpasswd -L -j TESTWG
+ $prefix/bin/smbpasswd -L -j TESTWG
+ status=$?
+ if [ $status = 0 ]; then
+ echo "smbpasswd correctly joined the domain ($workgroup)"
+ else
+ echo "smbpasswd failed to join the domain ($workgroup)! (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
+