1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/testsuite/build_farm/basicsmb-hostsequiv.test
Andrew Bartlett 5377944635 Fix up the test for some of the quirkier hosts on the farm, and enable one
previously disabled sub-test.
(This used to be commit 4df974527c)
2001-09-20 08:28:41 +00:00

27 lines
646 B
Plaintext

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