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
Andrew Bartlett
1a3d6de20a
torture: Add discard_const_p() to work around dlz_create prototype
2012-09-11 16:25:35 +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
Volker Lendecke
814dc3c62b
smbtorture: Test that delete requests are not special
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-09-10 14:58:51 -07:00
Matthieu Patou
e3b6b465ee
Force cast to long as on some platform tv_usec is 32bit long
...
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Mon Sep 10 07:33:50 CEST 2012 on sn-devel-104
2012-09-10 07:33:50 +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
Alexander Bokovoy
dd2ab2e679
s4-torture: dns torture test depends on AD DC build
2012-09-07 12:31:42 +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
Andrew Bartlett
baf2db685f
selftest: Test configure stage of dlz_bind9
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Sep 6 09:07:11 CEST 2012 on sn-devel-104
2012-09-06 09:07:11 +02:00
Andrew Bartlett
52f0dedc1a
selftest: Add tests for the dlz_bind9 module
...
This will help ensure that we do not break the fundemental loading etc.
From here, it should be easy to extend this to more comprehensive tests.
Andrew Bartlett
2012-09-06 15:22:26 +10:00
Jeremy Allison
5e0365dfe8
Now SEC_RIGHTS_PRIV_RESTORE and SEC_RIGHTS_PRIV_BACKUP don't include any generic bits (they're used directly in the fileserver where the generic bits have already been mapped into file specific bits) we need to add the generic bits to the test when we have these privileges.
...
Mark samba4.base.maximum_allowed knownfail until we implement NTCREATEX_OPTIONS_BACKUP_INTENT.
2012-08-31 20:32:37 -07:00
Jeremy Allison
6550bc0d26
Rewrite torture_samba3_rpc_sharesec() to use a non-privileged user for share security descriptor testing.
2012-08-31 20:29:13 -07:00
Jeremy Allison
7c4ae72851
Now ACL inheritance flags are working, add test_inheritance_flags() back into raw.acls to ensure we don't regress.
2012-08-30 11:01:30 -07:00
Andrew Bartlett
a58bf44c1e
s4-torture: Add start of a test to confirm winbindd PAC parsing
...
So far this confirms that we can accept a ticket using the secrets.tdb
entry.
Andrew Bartlett
2012-08-29 23:46:17 +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
Andrew Bartlett
b5c2747cad
s4-provision: pass use_ntvfs from C wrappers and set to true in tests/vampire
...
None of these cases need the complexity of the s3fs backend.
Andrew Bartlett
2012-08-22 01:31:57 +02:00
Andrew Bartlett
84d6e09b95
s4-torture: Use torture_fail() in the unix.unix_info2 test
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Aug 20 15:36:48 CEST 2012 on sn-devel-104
2012-08-20 15:36:47 +02:00
Andrew Bartlett
c75b6154e4
s4-torture: Show that we cannot list extended attributes on streams
2012-08-20 21:58:08 +10:00
Andrew Bartlett
f9837d15f3
s4-torture: Show that we cannot have extended attributes on streams
2012-08-20 21:58:07 +10:00
Andrew Bartlett
bf1e27bd8f
s4-torture: Improve raw.streams test to cover EAs and to use torture_assert()
...
The extension of this test is to create an extended attribute, so we
can confirm that the easize field on a stream actually refers to the
parent file.
This has been run against Windows 7.
Andrew Bartlett
2012-08-20 21:58:07 +10:00
Michael Adam
4f4bb1f20d
s4:torture:basic: add more delete test - variants of deltest16 and deltest17
...
There seems to be a difference if the initial delete_on_close flag
was set on a handle that created the file or if the handle if was
for a file that already existed.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 17 21:44:24 CEST 2012 on sn-devel-104
2012-08-17 21:44:24 +02:00
Volker Lendecke
d7515b6a88
torture: Reproducer for 64c0367
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-08-10 14:38:47 -07:00
Michael Adam
f64c970e3e
s4:torture:basic: check the return status of the last open in deltest16
...
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Aug 9 18:01:50 CEST 2012 on sn-devel-104
2012-08-09 18:01:50 +02:00
Michael Adam
2352227b66
s4:torture:basic: fix a message typo in the delete17 test
2012-08-09 16:23:46 +02:00
Michael Adam
6cc5a54bc0
s4:torture:basic: fix abundance of spaces in deltest6
2012-08-09 16:23:46 +02:00
Michael Adam
fac4a0d4a7
s4:torture:basic:delete: fix 4 vs 8 spc tab formatting in check_delete_on_close()
2012-08-09 16:23:45 +02:00
Stefan Metzmacher
ba864b83fa
s4:torture: add support for SMB_EXTENDED_SIGNATURES during SMBtconX
...
metze
2012-08-04 09:10:22 +02:00
Stefan Metzmacher
e9562530d9
s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flag
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Aug 2 10:54:18 CEST 2012 on sn-devel-104
2012-08-02 10:54:18 +02:00
Andrew Bartlett
31787417ca
s4-repl: Add tests for add replication conflicts and use of LostAndFound
...
LostAndFound is used when we find children of a deleted object that are not themselves deleted.
Andrew Bartlett
2012-07-31 14:15:29 +02:00
Andrew Bartlett
d6f47bd5a3
s4-torture: Fix format string errors found by -Werror=format
2012-07-30 14:25:10 +10: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