mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
28f76a4162
(This used to be commit 4456d5edd9
)
23 lines
435 B
Plaintext
23 lines
435 B
Plaintext
. basicsmb.fns
|
|
test_sharelist() {
|
|
echo $prefix/bin/smbclient -U$whoami% -L localhost
|
|
$prefix/bin/smbclient -U$whoami% -L localhost
|
|
status=$?
|
|
if [ $status = 0 ]; then
|
|
echo "smbd listed shares OK"
|
|
else
|
|
echo "listing shares with smbd failed with status $status"
|
|
return 1
|
|
fi
|
|
return 0
|
|
}
|
|
|
|
# Need guest account
|
|
password=samba
|
|
security=USER
|
|
(test_smb_conf_setup && test_smbpasswd $password ) || exit 1
|
|
|
|
test_sharelist || exit 1
|
|
|
|
|