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:
parent
8feb866c21
commit
7aa5875ff9
1
selftest/knownfail.d/libsmbclient.noanon_list
Normal file
1
selftest/knownfail.d/libsmbclient.noanon_list
Normal file
@ -0,0 +1 @@
|
||||
^samba4.libsmbclient.noanon_list.baduser
|
@ -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."):
|
||||
|
Loading…
Reference in New Issue
Block a user