summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
AgeCommit message (Collapse)AuthorFilesLines
2009-11-27s4-torture: fixed error code for s4 in SMB2-LOCK testAndrew Tridgell1-1/+8
s4 returns NETWORK_NAME_DELETED if you attempt to use an invalid tree connection for a lock. This test (correctly I think) happens before we validate the file handle. That implies that when you pass both a closed handle and a invalid tree you should get NT_STATUS_NETWORK_NAME_DELETED.
2009-11-27s4-torture: fixed expected error codes for s4 in SMB2-LOCKAndrew Tridgell1-3/+22
I think the error/success codes returned by windows for these tests are quite bogus. The ones s4 gives are much more reasonable. The locking ones returning NT_STATUS_SUCCESS could lead to data loss, as an application thinks it has a file locked correctly when it fact it doesn't, so it could do an unsafe modify.
2009-11-27torture: fixed SMB2-LOCK valgrind errorAndrew Tridgell1-1/+2
2009-11-25s4/torture: port SMBv1 RAW-LOCK tests to SMBv2Steven Danneman1-20/+2012
RAW-LOCK ported as: RAW-LOCK-LOCK, RAW-LOCK-LOCKX -> SMB2-LOCK-LOCK RAW-PIDHIGH -> removed, no longer relevant RAW-ASYNC -> SMB2-LOCK-ASYNC, SMB2-LOCK-CANCEL, SMB2-LOCK-CANCEL-TDIS, SMB2-LOCK-CANCEL-LOGOFF RAW-ERRORCODE -> SMB2-LOCK-ERRORCODE RAW-CHANGETYPE -> removed, no longer relevant RAW-ZEROBYTELOCKS -> SMB2-LOCK->ZEROBYTELENGTH RAW-UNLOCK -> SMB2-LOCK-UNLOCK RAW-MULTIPLE_UNLOCK -> SMB2-LOCK-MULTIPLE-UNLOCK RAW-STACKING -> SMB2-LOCK-STACKING BASE-LOCK ported as: BASE-LOCK-LOCK1 -> SMB2-LOCK-ERRORCODE, timeout is no longer relevant BASE-LOCK-LOCK2 -> SMB2-LOCK-CONTEND, SMB2-LOCK-LOCK, SMB2-LOCK-CONTEXT BASE-LOCK-LOCK3 -> SMB2-LOCK-RANGE BASE-LOCK-LOCK4 -> SMB2-LOCK-OVERLAP BASE-LOCK-LOCK5 -> SMB2-LOCK-STACKING BASE-LOCK-LOCK6 -> SMB2-LOCK-CANCEL, change_locktype no longer relevant BASE-LOCK-LOCK7 -> SMB2-LOCK-RW-SHARED, SMB2-LOCK-RW-EXCLUSIVE
2009-11-25s4/libcli: rename previously reserved field in SMB2 LOCK structSteven Danneman2-14/+14
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
2009-11-21s4:torture/smb2/oplock - Remove unneeded "status" redeclarationsMatthias Dieter Wallnöfer1-5/+0
2009-11-21s4:torture/smb2/notify - Rename nested "fname" variable to prevent warningsMatthias Dieter Wallnöfer1-6/+6
2009-11-18SMB2-LOCK: make use of torture_assert_*()Stefan Metzmacher1-12/+6
This is needed in order to mark tests as known failures. metze
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan2-42/+1829
* Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
2009-11-17torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman1-100/+101
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell11-18/+0
This reduces compile time somewhat.
2009-10-18s4-torture: fixed the streams tests for Samba4Andrew Tridgell1-17/+17
In some cases we were not doing streams tests on s4 that we should. In others, we were calling tests that are known to fail on s4. Some of those are a bit puzzling.
2009-10-18smb2-torture: samba4 allows SEC_FLAG_SECURITY to be used with privilegesAndrew Tridgell1-0/+2
2009-10-09s4/torture: fix build break "implicit declaration of function 'isprint'"Steven Danneman1-0/+1
2009-10-07s4/torture: Ported SMBv1 RAW-OPEN tests to SMB2-CREATEAravind Srinivasan1-1/+573
Four tests were ported from raw/open.c One new tests added LEADING-SLASH, which tests that a server provides the proper error when a relative path is given to a CREATE PDU with a leading "/".
2009-10-07s4/torture: convert all printf to torture_commentsAravind Srinivasan1-20/+32
2009-10-07s4/torture: Ported SMBv1 RAW-STREAMS tests to SMB2-STREAMSAravind Srinivasan3-1/+1770
2009-10-02s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer2-7/+3
2009-10-01s4/torture: second try on renaming oplocks.c to oplock.cSteven Danneman1-0/+3617
Forgot to "git add" the new file in commit b2bcfaae
2009-10-01s4/torture: rename oplocks.c to oplock.c to match SMB1 file layoutSteven Danneman2-3618/+1
2009-10-01s4/torture: Ported SMB oplock torture tests to SMB2Steven Danneman2-68/+3510
I've ported all applicable SMB oplock torture tests to SMB2, giving us a good base for SMB2 oplock testing. There are several differences between oplocks in SMB and SMB2, mostly because of differences in W2K3 and W2K8. The existing SMB oplock tests all pass against W2K3, but several fail against W2K8. These same tests were failing in SMB2, util I reworked them. BATCH19, BATCH20: In W2K3/SMB a setfileinfo - rename command wouldn't cause a sharing violation or break an existing oplock. It appears that in W2K8/SMB2 a sharing violation is raised. BATCH22: In W2K3/SMB when a second opener was waiting the full timeout of an oplock break, it would receive NT_STATUS_SHARING_VIOLATION after about 35 seconds. This bug has been fixed in W2K8/SMB2 and instead the second opener succeeds. LEVELII500: Added 1 new test checking that the server returns a proper error code when a client improperly replies to a levelII to none break notification. STREAM1: W2K8 now grants oplocks on alternate data streams.
2009-09-08s4/torture/smb2: removed SMB2-FIND testSteven Danneman3-222/+0
This test has been wholly replaced by the SMB2-DIR-ONE test found in dir.c.
2009-09-08s4/torture/smb2: Fix several small bugs and style issues in SMB2 dir testsSteven Danneman1-136/+152
* removed all uses of printf, replaced with torture_comment * replaced custom CHECK macros with new torture_assert_*_todo() helpers * switched string dir name generation to generate_unique_strs() helper, to avoid non-deterministic test behavior where generate_rand_str() would cause file colissions in the same directory.
2009-09-08s4: 'index' is a libc functionAndrew Tridgell1-2/+2
2009-07-15torture/smb2: add missing new line to the new SMB2-DIR.FILE-INDEX testStefan Metzmacher1-1/+1
Without this the subunit formated output would be invalid and make test reports: "UNEXPECTED(error): samba4.smb2.dir (dc).FILE-INDEX" metze
2009-07-15SMB2-GETINFO: test SMB2_ALL_EASStefan Metzmacher1-2/+2
metze
2009-07-15SMB2-CONNECT: unlink the test file at startupStefan Metzmacher1-0/+2
This is needed to get reproducable results... metze
2009-07-15torture/smb2: fix crash bugs in the new SMB2-DIR testsStefan Metzmacher1-2/+2
metze
2009-07-14torture/smb2: Adding SMB2 Directory enumeration torture tests.Aravind3-26/+1265
* Most of the tests were ported from SMB torture tests. * Added one new tests which checks the behavior of the file_index field present in SMB2_FIND struct. * Added one new test to check the enumeration of directories containing lots of files (~2000 files) with name lengths varying from 1 to 200 char.
2009-07-06SMB2-NOTIFY: windows7 uses a different maximum buffer sizeStefan Metzmacher1-12/+21
metze
2009-06-09SMB2-COMPOUND: add some tests for invalid requestsStefan Metzmacher1-0/+201
TODO: check why the INVALID1 tests fails with --signing=required. metze
2009-06-09s4:torture: add SMB2-COMPOUND testStefan Metzmacher3-1/+245
metze
2009-06-03SMB2-CONNECT: make it possible to specific the max write size via ↵Stefan Metzmacher1-1/+1
--option=torture:smb2maxwrite=12345 metze
2009-05-20SMB2-LOCK: let the test pass against samba4Stefan Metzmacher1-1/+7
metze
2009-04-01s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/gZach Loafman1-5/+5
2009-04-01s4:torture/smb2: Add torture tests for lease breaks, durable opens.Zach Loafman2-136/+988
2009-03-28s4:torture/smb2: Add torture tests for leases.Zach Loafman3-0/+298
2009-03-27s4:torture/smb2: fix compiler warnings and bugsStefan Metzmacher1-1/+3
metze
2009-03-27s4:torture/smb2: fix the buildStefan Metzmacher1-5/+5
We move prototypes of _PUBLIC_ functions into /dev/null, as we want public function to have handwritten prototypes. see proto_header_template in build/make/templates.mk... metze
2009-03-26Add durable open / oplock interaction test. Rather than give it a chance to ↵Zach Loafman1-3/+109
disconnect, Win7 will break a batch oplock immediately on contention.
2009-03-26Reorganize old persistent_handles test into durable_open.c, turn it into a ↵Zach Loafman3-9/+20
suite instead of a solo test (in anticipation of more tests).
2009-03-17s4 torture: Win7 has a slightly different allowed access maskZach Loafman1-1/+7
Still investigating.
2009-03-17s4 torture: Add a string version for NT_STATUS_WIN7_INVALID_RANGEZach Loafman1-10/+29
Also submitted a request to cifs-protocol for a real name for this thing. Use win7 target logic in smb2 lock test, SMB2-LOCK now passes against Win7.
2008-12-22Fix missing symbols issues when building with shared libraries.Jelmer Vernooij1-0/+1
2008-11-16s4:torture: fix the build with auto dependenciesStefan Metzmacher1-1/+1
metze
2008-11-02Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij2-3/+6
2008-11-02Fix the build.Jelmer Vernooij2-11/+15
2008-11-01Remove another use of global_loadparm.Jelmer Vernooij2-2/+6
2008-10-24Remove unused include param/param.h.Jelmer Vernooij5-6/+0
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1