1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:selftest: run libsmbclient.noanon_list against maptoguest

This demonstrates the problem with guest access being rejected
by default.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14935

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 0a808f6b53)
This commit is contained in:
Stefan Metzmacher 2021-12-21 12:05:13 +01:00 committed by Jule Anger
parent 8feb866c21
commit 7aa5875ff9
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
^samba4.libsmbclient.noanon_list.baduser

View File

@ -409,6 +409,22 @@ for t in libsmbclient:
[ "--option=torture:clientprotocol=%s" % proto],
"samba4.%s.%s" % (t, proto))
url = "smb://baduser:invalidpw@$SERVER/tmpguest"
t = "libsmbclient.noanon_list"
libsmbclient_testargs = [
'//$SERVER/tmpguest',
'-U$USERNAME%$PASSWORD',
"--option=torture:smburl=" + url,
"--option=torture:replace_smbconf="
"%s/testdata/samba3/smb_new.conf" % srcdir()
]
for proto in protocols:
plansmbtorture4testsuite(t,
"maptoguest",
libsmbclient_testargs +
[ "--option=torture:clientprotocol=%s" % proto],
"samba4.%s.baduser.%s" % (t, proto))
plansmbtorture4testsuite("raw.qfileinfo.ipc", "ad_dc_ntvfs", '//$SERVER/ipc\$ -U$USERNAME%$PASSWORD')
for t in smbtorture4_testsuites("rap."):