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-hostsequiv.test | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 testsuite/build_farm/basicsmb-hostsequiv.test (limited to 'testsuite/build_farm/basicsmb-hostsequiv.test') diff --git a/testsuite/build_farm/basicsmb-hostsequiv.test b/testsuite/build_farm/basicsmb-hostsequiv.test new file mode 100644 index 0000000000..0df086e910 --- /dev/null +++ b/testsuite/build_farm/basicsmb-hostsequiv.test @@ -0,0 +1,28 @@ +if [ $whoami = "root" ]; then + exit 0; +fi + +. basicsmb.fns + +test_listfilesrootnpw() { + remote_name="$1" + echo $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls' + $prefix/bin/smbclient //$remote_name/samba -n buildclient -Uroot% -c 'ls' + status=$? + if [ $status = 0 ]; then + echo "smbd listed files AS ROOT with NO PASSWORD (hosts equiv test)!" + return 1 + else + echo "listing files with smbd failed with status $status (correct)" + fi + return 0 +} + +password="not-a-valid-password" +security="hostsequiv" +(test_smb_conf_setup ) || exit 1 + +(test_listfilesauth $security) || exit 1 +# (test_listfilesrootnpw $security) || exit 1 +# Unfortuetly we map to guest, and this is allowed access due to a BUG. This +# test disabled till we fix it. -- cgit