blob: a470b29b2e650fdfa2a1ef814d2395c94d45c6cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
. basicsmb.fns
test_listfilesnpw() {
echo $prefix/bin/smbclient //localhost/samba -U$whoami% -c 'ls'
$prefix/bin/smbclient //localhost/samba -U$whoami% -c 'ls'
status=$?
if [ $status = 0 ]; then
echo "smbd listed files in user level security with NO PASSWORD!"
return 1
else
echo "listing files with smbd failed with status $status (correct)"
fi
return 0
}
password=samba
(test_smb_conf_setup && test_smbpasswd) || exit 1
test_listfilesnpw || exit 1
|