1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

393 Commits

Author SHA1 Message Date
Michael Adam
df5f962c60 s4:torture:smb2: fix error reporting in the oplock-brl3 test
(Error was set to an unused variable)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 22:09:18 CEST 2012 on sn-devel-104
2012-09-11 22:09:18 +02:00
Michael Adam
439c907f6b s4:torture:smb2: fix error reporting in the oplock-brl2 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
e9df135ca5 s4:torture:smb2: fix error reporting in the oplock-brl1 test
(Error was set to an unused variable)
2012-09-11 20:10:08 +02:00
Michael Adam
c960e55fbf s4:torture:smb2: remove an unused variable from the oplock-exclusive2 test 2012-09-11 20:10:07 +02:00
Michael Adam
7c6f1fb294 s4:torture:smb2: remove an unused variable from the oplock-exclusive1 test 2012-09-11 20:10:07 +02:00
Michael Adam
a4358f6ffd s4:torture:smb2: add a durable-open.delete_on_close2 test
This test verifies that the delete on close flag is kept during
a disconnect and is still active on the reconnected handle.
When the reconnected handle is closed, the file is deleted.
2012-09-11 14:29:54 +02:00
Michael Adam
3d7196d0a4 s4:torture:smb2: fix the durable-open.delete_on_close1 test
This test used to flap because there was an invalid check of
the file-id. This might or might not be the same after a
new open. Hence the flapping.

The new version simply opens a file as durable handle with
delete_on_close set, writes a byte and closes the file.
Then on a new connect, the file is opened again, and it is checked
that the file has been created (again) and that it is empty.
2012-09-11 14:29:54 +02:00
Michael Adam
4931a9010f s4:torture:smb2: simplify durable-open.file-position test to only use one I/O and one handle
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:42 +02:00
Michael Adam
97be058c9e s4:torture:smb2: change the durable-open.file-position test to use one connection only
And do a tcp disconnect followed by a session reconnect instead
of immediately using the already opened second connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:39 +02:00
Michael Adam
32956300a7 s4:torture:smb2: fix durable-v2-open.reopen2 to pass against windows
The DH2Q response blob is not sent upon successful durable handle v2 reconnect.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:37 +02:00
Michael Adam
1b96a6df19 s4:torture:smb2: simplify the durable-v2.reopen2 test (using only one i/o struct)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:34 +02:00
Michael Adam
fc0631cae6 s4:torture:smb2: simplify the durable-v2-open.reopen1 test
only use one smb2_create i/o struct and store the create GUID centrally

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:31 +02:00
Michael Adam
67290e7d2e s4:torture:smb2: in the durable-v2-reopen1 test, use a minimal request
don't copy the old request, but only set the necessary fields

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:29 +02:00
Michael Adam
d3946fed75 s4:torture:smb2: fix cut'n'paste error in the durable-v2-open.reopen2 test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:25 +02:00
Michael Adam
e1dd2fc2fa s4:torture:smb2: fix name of test file in the durable-open.alloc-size test
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-09-07 23:39:21 +02:00
Michael Adam
972bf34332 s4:torture:smb2: add a test for alloc size behaviour under durable reconnect
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-09-07 08:48:05 +02:00
Stefan Metzmacher
640752b969 s4:torture/smb2: add smb2.durable-v2-open.reopen{1,2} tests
They show that only the content of the DH2C request matches and
all other values in the SMB2 Create request are ignored.

metze
2012-09-07 00:32:30 +02:00
Stefan Metzmacher
1874ebeb37 s4:torture/smb2: check that the server should ignore the fname in a DHnC request
metze
2012-09-07 00:32:30 +02:00
Stefan Metzmacher
afaea04f1c s4:torture/smb2: don't expect a DHnQ response in a DHnC request
This is fixed in Windows 2012 and matches the [MS-SMB2] documentation
now.

metze
2012-09-07 00:32:30 +02:00
Volker Lendecke
f118eae76d s4-torture: Test for #9058
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Aug 27 17:43:09 CEST 2012 on sn-devel-104
2012-08-27 17:43:08 +02:00
Stefan Metzmacher
0aac3c09f1 libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()
metze
2012-07-25 14:48:50 +02:00
Stefan Metzmacher
4d6d783afe s4:libcli/smb2: remove unused smb2_session->pid
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
57fda88dfb s4:libcli/smb2: remove unused elements from smb2_tree
metze
2012-07-25 12:15:04 +02:00
Stefan Metzmacher
56af56d041 s4:torture/smb2: create temporary smbXcli_tcon/session structures instead of changing them
metze
2012-07-25 12:15:04 +02:00
Stefan Metzmacher
72e047f7c5 s4:torture/smb2: use smb2cli_tcon_capabilities()
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
41538b17c5 s4:libcli/smb2: setup a smbXcli_tcon for each smb2_tree
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
31ad4d77e3 s4:torture/smb2: run smb2.session.reauth5 in a subdirectory
This way we can give anonymous full access to the directory.

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 11:30:06 CEST 2012 on sn-devel-104
2012-06-22 11:30:05 +02:00
Stefan Metzmacher
0c54e7c936 s4:torture/smb2: add smb2.durable-open.lock-oplock
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 22 03:37:54 CEST 2012 on sn-devel-104
2012-06-22 03:37:54 +02:00
Stefan Metzmacher
7d8db45028 s4:torture/smb2: rename smb2.durable-open.lock to smb2.durable-open.lock-lease
metze
2012-06-22 01:47:33 +02:00
Stefan Metzmacher
9089d487c4 s4:torture/smb2: add smb2.durable-open.delete_on_close1
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jun 21 10:19:00 CEST 2012 on sn-devel-104
2012-06-21 10:19:00 +02:00
Michael Adam
7dd22bdb47 s4:torture: fix use of non-existent word (existant) 2012-06-12 07:21:45 +02:00
Christian Ambach
9102ccf648 s4:torture report connection error via torture_fail
to make smbtorture report the error instead of complaining about missing torture_ call

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue May 29 13:57:42 CEST 2012 on sn-devel-104
2012-05-29 13:57:41 +02:00
Stefan Metzmacher
918eb3ecc5 s4:torture: add smb2.session.expire1
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu May 17 21:53:11 CEST 2012 on sn-devel-104
2012-05-17 21:53:11 +02:00
Stefan Metzmacher
50e1861381 s4:torture: add smb2.session.reconnect2 test
This uses just one transport connection
and demonstrates the implicit logoff of the previous session.

metze
2012-05-17 20:04:35 +02:00
Stefan Metzmacher
908b737a29 s4:torture: rename smb2.session.reconnect to smb2.session.reconnect1
metze
2012-05-17 20:04:34 +02:00
Stefan Metzmacher
184227d269 s4:torture: remove unused vars in smb2.session.reauth*
metze
2012-05-17 20:04:34 +02:00
Michael Adam
6713ebfd60 s4:torture: add a new smb2.session.reauth5 test: rename after reauth to anon - fails 2012-05-08 18:49:05 +02:00
Michael Adam
35009eb3a9 s4:torture: add a new smb2.session.reauth4 test: setting security descriptor after reauth to anon - works 2012-05-08 18:49:05 +02:00
Michael Adam
027f2b3406 s4:torture: add a new smb2.session.reauth3 test - getting security descriptor
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu May  3 17:38:14 CEST 2012 on sn-devel-104
2012-05-03 17:38:13 +02:00
Michael Adam
2085c20bb1 s4:torture:smb2: add a session.reauth2 test.
* open a file,
* reauth anonymously
* try to access file via handle
* reauth as user
* try to access file again

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr 18 16:53:35 CEST 2012 on sn-devel-104
2012-04-18 16:53:35 +02:00
Michael Adam
f3ac212d8b s4:torture:smb2: rename the file in the session-reauth1 test more systematically
The original name seems to have come in via copy and paste.
2012-04-18 15:17:36 +02:00
Michael Adam
361deb856b s4:torture:smb2: rename the session_reauth test to session_reauth1
More tests reauth? will follow...
2012-04-18 15:17:36 +02:00
Stefan Metzmacher
fa62f9474b s4:torture/smb2: avoid hanging in smb2.session.reconnect against samba
Now we fail the test directly instead of waiting for oplocks to timeout.

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>

metze
2012-03-08 14:23:22 +01:00
Gregor Beck
ee6cd3b84e s4:torture: smb2.getinfo test return status of stream creation
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Gregor Beck
aa993a89f0 s4:torture/smb2: add simple smb2.session.reauth test
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-07 10:57:27 +01:00
Gregor Beck
46a96c42a2 s4:torture make a suite for smb2.*scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
59f818d80b s4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
af6555d2a9 s4:torture: use different filenames for smb2 setinfo and getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
80436ed099 s4:torture: cleanup after smb2 setinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00
Gregor Beck
2b3ed65273 s4:torture: cleanup after smb2 getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-03-06 23:53:07 +01:00