From c16effd5fb4f53a9f900da9be2a94c5468f4677f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 20 Sep 2001 06:23:29 +0000 Subject: 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) --- testsuite/build_farm/basicsmb-domainsec.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'testsuite/build_farm/basicsmb-domainsec.test') diff --git a/testsuite/build_farm/basicsmb-domainsec.test b/testsuite/build_farm/basicsmb-domainsec.test index 0674e75bb8..ff184c4c7f 100644 --- a/testsuite/build_farm/basicsmb-domainsec.test +++ b/testsuite/build_farm/basicsmb-domainsec.test @@ -1,9 +1,30 @@ +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 + 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 $password || exit 1 + test_listfilesauth $security || exit 1 test_listfilesnpw $security || exit 1 -- cgit