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

998 Commits

Author SHA1 Message Date
Andrew Tridgell
beaa01e403 implemented client side SMB2 signing
This doessn't work against Windows yet, and I've submitted a WSPP
request for clarification of the docs to try and find out
why. Meanwhile this is no worse than what we had, as it only gets used
when the server demands signing, and we didn't work then anyway.
(This used to be commit b788096add)
2008-05-30 17:03:54 +10:00
Andrew Tridgell
b33dba845e don't emulate broken SMB2 locking behaviour from windows
(This used to be commit c50e7a15f9)
2008-05-30 07:28:29 +10:00
Andrew Tridgell
523a0fccf3 check maximal_access here too
(This used to be commit 8159b1598e)
2008-05-29 19:30:11 +10:00
Andrew Tridgell
215fd9764f test the maximal access return
(This used to be commit 23ffec5d14)
2008-05-29 19:16:44 +10:00
Andrew Tridgell
c793faf998 check the set of file attributes which are ignored
(This used to be commit c818f56d8e)
2008-05-28 22:44:54 +10:00
Andrew Tridgell
1eabf81554 check that we can't change a file to a directory
(This used to be commit e013ada415)
2008-05-28 20:06:48 +10:00
Andrew Tridgell
f7bf79043e added testing of some strange read semantics on windows
(This used to be commit 46a0b65742)
2008-05-28 20:06:38 +10:00
Andrew Tridgell
91069754f8 add testing of creating a file with an initial ACL on SMB2
(This used to be commit e957e86a03)
2008-05-28 18:48:23 +10:00
Andrew Tridgell
0eb4ecc81a test unknown tags and bad tag lengths
(This used to be commit 72902c1d0f)
2008-05-28 16:59:12 +10:00
Andrew Tridgell
082272e49d added testing of SMB2 create blobs
(This used to be commit a48cbec6b9)
2008-05-28 16:28:50 +10:00
Andrew Tridgell
0dbef08a9a expanded the SMB2-READ test, including the windows position bug
(This used to be commit 43e7b13027)
2008-05-28 12:06:29 +10:00
Andrew Tridgell
17704a8df6 add exceptions for some of the strange windows SMB2 locking behaviour
(This used to be commit 429bbecebe)
2008-05-28 12:05:23 +10:00
Andrew Tridgell
6cdfbd8380 fixed uninitialised variable
(This used to be commit 8d2e20fcb9)
2008-05-27 20:16:00 +10:00
Andrew Tridgell
ed3a095a5a fixed file_attributes test
(This used to be commit 791ce0fe39)
2008-05-27 19:10:35 +10:00
Andrew Tridgell
4f0d968d1d added a basic SMB2 read test suite
(This used to be commit 4aeda5c114)
2008-05-27 18:20:04 +10:00
Andrew Tridgell
a75d5075ea re-enable some tests
(This used to be commit c15b24a2f4)
2008-05-27 18:19:22 +10:00
Andrew Tridgell
beac55a88f enforce lock ordering in SMB2
(This used to be commit 3bec932a89)
2008-05-27 17:22:02 +10:00
Andrew Tridgell
c400933c02 added some SMB2 locking tests from gentest
(This used to be commit 2932fcb046)
2008-05-27 16:02:43 +10:00
Andrew Tridgell
7ae464b548 another gentest derived test
(This used to be commit bb546ab377)
2008-05-27 15:00:05 +10:00
Andrew Tridgell
6e265867ff SEC_STD_SYNCHRONIZE is only invalid on SMB2
(This used to be commit 067f1271ad)
2008-05-27 14:30:42 +10:00
Andrew Tridgell
95afe46a0e expanded the SMB2 create testing
(This used to be commit 7191512849)
2008-05-27 14:07:27 +10:00
Andrew Tridgell
0d8d6dbfd7 the start of a SMB2 create test suite
(This used to be commit 16787e99f3)
2008-05-27 12:41:50 +10:00
Andrew Tridgell
61e78a2c61 minor cleanup in SMB2 getinfo test
(This used to be commit b139b47107)
2008-05-22 14:50:36 +10:00
Andrew Tridgell
7ba8dca590 fixes to the SMB2 lock test after recent SMB2 locking changes
(This used to be commit de7626e1c2)
2008-05-22 13:14:36 +10:00
Andrew Tridgell
4d39976ddd fixed SMB2 locking
- SMB2 locking is different in several ways from SMB locking. To fix
  it properly we will need a new generic mapping structure for
  locking, but for now do a best effort mapping

- added locking to gentest_smb2
(This used to be commit ea6d9cf602)
2008-05-21 22:12:20 +10:00
Andrew Tridgell
f8f0cc985b moved these util functions into libcli
(This used to be commit b2f1154bc3)
2008-05-20 11:59:18 +10:00
Andrew Tridgell
03eb236f20 Merge commit 'origin/v4-0-test' into vfs_smb2
(This used to be commit 733937e87a)
2008-05-19 11:40:25 +10:00
Andrew Tridgell
66cbf7eb59 added mkdir to SMB2 proxy
(This used to be commit 1323aab11f)
2008-05-19 11:39:16 +10:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b5211994)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
03643aec88 Use variables for source directory in a couple more places.
(This used to be commit c41bd3005f)
2008-05-18 19:54:27 +02:00
Andrew Tridgell
c7d7577fb9 private -> private_data for struct smb2_request
(This used to be commit 67290e0ad6)
2008-05-16 15:03:58 +10:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065)
2008-05-10 23:46:51 +02:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121d)
2008-04-27 14:02:46 +01:00
Stefan Metzmacher
f0eb488d22 SMB2-PERSISTENT-HANDLES1: close the handle before deleting it
This means we no longer have a oplock break timing out
for the "delete".

metze
(This used to be commit 50f6a72b67)
2008-04-19 02:06:44 +02:00
Stefan Metzmacher
95d111b7e4 torture/smb2: add a simple SMB2-OPLOCK-BATCH1 test
metze
(This used to be commit 914f0ac83b)
2008-04-19 01:54:45 +02:00
Jelmer Vernooij
dd0da89e84 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit ece878c1f9)
2008-04-17 13:05:25 +02:00
Stefan Metzmacher
8d6af0a8ad SMB2-PERSISTENT-HANDLES1: verify some more fields
metze
(This used to be commit ae0a7d0918)
2008-04-17 03:52:45 +02:00
Stefan Metzmacher
4dc59022e8 torture/smb2: add SMB2-PERSISTENT-HANDLES1 test
This demonstrates that the file seek position
is still available on reconnected persistent handles.

metze
(This used to be commit 30e04ae3a0)
2008-04-17 02:39:32 +02:00
Stefan Metzmacher
17e41720d9 torture/smb2: add torture_suite_add_2smb2_test() helper function
metze
(This used to be commit d70afbb067)
2008-04-17 02:39:30 +02:00
Stefan Metzmacher
1fe057f2e8 torture/smb2: fix whitespaces
metze
(This used to be commit 66c0f331a2)
2008-04-17 02:39:30 +02:00
Jelmer Vernooij
4b9c7df9b7 Avoid event_find_context when a event context is already available.
(This used to be commit 4ca264679e)
2008-04-16 23:06:27 +02:00
Jelmer Vernooij
e9017ba418 Use _OBJ_FILES variables in a couple more places.
(This used to be commit 92856d5054)
2008-04-14 17:22:58 +02:00
Jelmer Vernooij
afe3e8172d Install public header files again and include required prototypes.
(This used to be commit 47ffbbf674)
2008-04-02 04:53:27 +02:00
Andrew Tridgell
0e03c3aa89 disable the EAS level in SMB2-GETINFO test until we get some feedback
on how the alignment requirements have changed
(This used to be commit 2a474568c2)
2008-02-18 14:55:30 +11:00
Andrew Tridgell
10a374421b open a root handle in SMB2 should use a NULL filename, not a zero length
filename
(This used to be commit a29dd708bf)
2008-02-18 14:54:59 +11:00
Andrew Tridgell
b640f475be updated SMB2 code for getinfo according to WSPP docs
- Updated getinfo structures and field names
- also updated the protocol revision number handling to reflect
  new docs
(This used to be commit 3aaa2e86d9)
2008-02-14 17:11:36 +11:00
Andrew Tridgell
88d2e05227 updated SMB2 create operation to match WSPP.
Adding some defined for various new create options
(This used to be commit d037dc23ce)
2008-02-13 15:05:44 +11:00
Jelmer Vernooij
5f4842cf65 r26376: Add context for libcli_resolve.
(This used to be commit 459e1466a4)
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
1f69adddc5 r26267: Fix two calls of smb2_connect I missed.
(This used to be commit fc824a5c45)
2007-12-21 05:47:43 +01:00
Jelmer Vernooij
ab69eb8d89 r26250: Avoid global_loadparm in a couple more places.
(This used to be commit 2c6b755309)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
bbdfbf8d9d r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
(This used to be commit a33a553054)
2007-12-21 05:47:20 +01:00
Jelmer Vernooij
934e932387 r26235: Avoid global_loadparm.
(This used to be commit e903978220)
2007-12-21 05:47:13 +01:00
Stefan Metzmacher
dae6a24532 r25579: BOOL -> bool
metze
(This used to be commit 058a0619e9)
2007-10-10 15:07:59 -05:00
Jelmer Vernooij
2151cde580 r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
60a1046c5c r25430: Add the loadparm context to all parametric options.
(This used to be commit fd697d77c9)
2007-10-10 15:07:31 -05:00
Stefan Metzmacher
803e57da44 r25159: fix missing declarations warning
metze
(This used to be commit 3d321a5efc)
2007-10-10 15:06:44 -05:00
Jelmer Vernooij
98b57d5eb6 r25035: Fix some more warnings, use service pointer rather than service number in more places.
(This used to be commit df9cebcb97)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b r25026: Move param/param.h out of includes.h
(This used to be commit abe8349f9b)
2007-10-10 15:05:38 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
d15e4d30e6 r22894: don't send a 2nd request before the last one returned (at least with
STATUS_PENDING) otherwise longhorn beta3 just drops the connection

metze
(This used to be commit 503644a5e3)
2007-10-10 14:52:29 -05:00
Stefan Metzmacher
5151068d5a r22858: - let SMB2-LOCK-VALID-REQUEST pass against longhorn beta3
- add modify the SMB2-LOCK-BLOCK-WRITE test to also test reading
  and name in SMB2-LOCK-RW-EXCLUSIV
- add SMB2-LOCK-NONE and SMB2-LOCK-SHARED

metze
(This used to be commit 258555975d)
2007-10-10 14:52:24 -05:00
Stefan Metzmacher
4bb3160555 r22824: - add a simple test which shows how a lock rejects
a write on a different file handle.
  SMB2-LOCK-BLOCK-WRITE

- make it possible to run each SMB2-LOCK-* test on its own

metze
(This used to be commit 9c02f690bc)
2007-10-10 14:52:20 -05:00
Stefan Metzmacher
65881651c6 r22407: this dependecies should be private
metze
(This used to be commit 7ad60e62fd)
2007-10-10 14:51:15 -05:00
Stefan Metzmacher
8d569e174f r21524: don't send unitialized data to the socket
metze
(This used to be commit 50955aa669)
2007-10-10 14:48:51 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Andrew Tridgell
ed24e83d5b r18838: make sure we cleanup after SMB2-MAXWRITE (it creates a large file)
(This used to be commit 54894fb8b8)
2007-10-10 14:20:14 -05:00
Andrew Tridgell
921f73c7e5 r18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
(This used to be commit 1e34e4d5a1)
2007-10-10 14:19:16 -05:00
Andrew Tridgell
8c3b54f01d r18808: added SMB2-MAXWRITE test and SMB2-DIR tests
expanded size of dangerous level for write in SMB2-CONNECT test
(This used to be commit 355c6e78a9)
2007-10-10 14:19:13 -05:00
Andrew Tridgell
aab0622a75 r18325: more warnings and one compile error on aix fixed
(This used to be commit 6e7e151432)
2007-10-10 14:18:09 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
5645acdb67 r17786: remove unused macros, fix compiler warnings
metze
(This used to be commit 7670e224d4)
2007-10-10 14:16:42 -05:00
Stefan Metzmacher
7cf9880d93 r16981: check the returned values
metze
(This used to be commit 687776a436)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
dd2d3b082c r16977: do a few more notify tests
metze
(This used to be commit 07b27333d5)
2007-10-10 14:10:05 -05:00
Stefan Metzmacher
1e5529f9ef r16976: add a very simple SMB2-NOTIFY test
metze
(This used to be commit 9dfbb0d15e)
2007-10-10 14:10:05 -05:00
Stefan Metzmacher
7e04c0032b r16951: add the year to the copyright...
metze
(This used to be commit 97157d5c4a)
2007-10-10 14:10:03 -05:00
Stefan Metzmacher
1fcd8c8a90 r16874: query all information
metze
(This used to be commit 0ff9c57757)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
2e56d833b4 r16739: test SMB2-GETINFO SMB2-SETINFO by make test
metze
(This used to be commit 0ebb25de56)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
metze
(This used to be commit fa35ddcaf9)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
d584033c6c r16737: if an error happens report it
metze
(This used to be commit 52ce898cf9)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
f0c737b924 r16736: - convert unix times to nttime before sending it to the wire...
- return an error code if an error happens

metze
(This used to be commit 9b52322e90)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
348ad95ea7 r16725: don't ignore errors
metze
(This used to be commit 4228230196)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
4da57142b4 r16672: we don't need this twice:-)
metze
(This used to be commit e8e9fe666e)
2007-10-10 14:09:38 -05:00
Stefan Metzmacher
1ce7b027e6 r16668: test setting of security descriptors vis smb2 setinfo
metze
(This used to be commit 377562e891)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
d3b3436ce1 r16406: use the generic smb_handle in smb2_getinfo/smb2_setinfo
metze
(This used to be commit dcc02df829)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
15db7a53e8 r16405: fix compiler warning of missing smb2_handle
metze
(This used to be commit 73194e9ec3)
2007-10-10 14:09:13 -05:00
Jelmer Vernooij
845df42a19 r16333: Move more code out of the core smbtorture. It now no longer
contains protocol-specific code.
(This used to be commit 819d3b4576)
2007-10-10 14:09:11 -05:00
Stefan Metzmacher
20532d7c49 r15816: add SMB2-LOCK torture test, which demonstrates what possible valid and invalid
requests you can do with it

metze
(This used to be commit adef1372c1)
2007-10-10 14:08:27 -05:00
Stefan Metzmacher
184c28844d r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
metze
(This used to be commit aa98aad097)
2007-10-10 14:08:25 -05:00
Stefan Metzmacher
f9ddc0dde5 r15759: samba4 currently only supports read sizes up to with UINT16_MAX
metze
(This used to be commit 05ced31cb9)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
e306c5bf12 r15741: move smb2 request structures into the main smb request structs
as new levels

metze
(This used to be commit 9180635317)
2007-10-10 14:08:11 -05:00
Jelmer Vernooij
a427a9bc53 r15599: Fix more popt dependencies - these should be the last ones
(This used to be commit b26e38cb62)
2007-10-10 14:06:03 -05:00
Stefan Metzmacher
dc86ab3e45 r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
also if the dynamic flag should be set

metze
(This used to be commit 7829100e1e)
2007-10-10 14:05:54 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6)
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
a1b295ed48 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
(This used to be commit be6d5298a2)
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
307e43bb56 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
(This used to be commit 2ef3f59709)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
1a53c1dc92 r13346: use private proto header files for the torture tests
metze
(This used to be commit 67837dbd2b)
2007-10-10 13:51:47 -05:00
Jelmer Vernooij
63d718e243 r12696: Reduce the size of include/structs.h
(This used to be commit 6391761601)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
78c50015bb r12694: Move some headers to the directory of the subsystem they belong to.
(This used to be commit c722f665c9)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21 r12608: Remove some unused #include lines.
(This used to be commit 70e7449318)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
2cd5ca7d25 r12542: Move some more prototypes out to seperate headers
(This used to be commit 0aca5fd513)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
d8e35f8828 r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583ed)
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
89f5d66dfe r12114: - smb2_keepalive() acts on the smb2_transport
- smb2_logoff() acts on the smb2_session

metze
(This used to be commit ae1ca2bb4a)
2007-10-10 13:47:10 -05:00
Andrew Tridgell
51b1deee5d r12007: fixed a valgrind error in the SMB2-SETINFO test
(This used to be commit 0c3223ab7d)
2007-10-10 13:46:58 -05:00
Tim Potter
03d301ead5 r11967: Fix more 64-bit warnings.
(This used to be commit 9c4436a124)
2007-10-10 13:46:52 -05:00
Tim Potter
ad02b0bee4 r11965: Try to fix some 64-bit warnings.
(This used to be commit e98c28941a)
2007-10-10 13:46:51 -05:00
Andrew Tridgell
42cba737c0 r11907: added testing of SMB2 keepalive
(This used to be commit 6096d23fe0)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
1e3583475f r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
brainstorming this one.
(This used to be commit a969ad592a)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
43405e0744 r11904: added smb2_tdis() testing
(This used to be commit e2ed615a44)
2007-10-10 13:46:46 -05:00
Andrew Tridgell
2ede0b162c r11902: added smb2_logoff() testing
(This used to be commit ff50377822)
2007-10-10 13:46:46 -05:00
Andrew Tridgell
5fc1b68683 r11890: added tests for the last few fields in SMB2 find requests
(This used to be commit 77d1938e96)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
3294bf59aa r11850: added a test suite for the SMB2 find calls
(This used to be commit 3ac32d802b)
2007-10-10 13:46:38 -05:00
Andrew Tridgell
fc04e3e795 r11801: - added basic SMB2 find support
- added SMB2-SCANFIND test

- cleaned up continue flags in EAs and find requests
(This used to be commit 8792bc07d9)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
7d6f36682e r11800: - filled in unknown fields in SMB2 all_info level
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
(This used to be commit 8c7c54a46d)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
d5f37ecf94 r11780: it turns out that the MxAc tag isn't a security descriptor, its a
request that the server return its own MxAc blob which contains the
maximum allowed access_mask for the returned file handle
(This used to be commit c0288aa8cd)
2007-10-10 13:46:26 -05:00
Andrew Tridgell
3922b68d13 r11777: display the security_descriptor in torture_smb2_all_info()
(This used to be commit d1067fc25d)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
1692b2e571 r11776: no need to call out to SMB to setup test files for SMB2 any more
(This used to be commit dae70c5bae)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
c8c7fb2492 r11775: added support for creating files on SMB2 with initial EA lists and an ACL
(This used to be commit ff19709298)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
d931455e6e r11773: added a SMB2-SETINFO test suite. This tests the following levels:
BASIC_INFORMATION
DISPOSITION_INFORMATION
ALLOCATION_INFORMATION
END_OF_FILE_INFORMATION
POSITION_INFORMATION
MODE_INFORMATION
(This used to be commit 8804b6a7eb)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
eedb92ce72 r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
(This used to be commit ba897e537b)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
7a43b32c3b r11755: added names for all of the SMB2 qfs info levels (they all map exactly
to equivalent SMB qfs levels)
(This used to be commit 4ce48d02aa)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
553361797f r11753: change the getinfo scanner to scan with both a file and a directory, and to use files
that have streams and EAs
(This used to be commit f739431927)
2007-10-10 13:46:22 -05:00
Stefan Metzmacher
e9eb560685 r11741: - the buffer code (first 2 bytes in the SMB2 body) seem to be the length
of the fixed body part, and +1 if there's a dynamic part
- there're 3 types of dynamic blobs
  with uint16_t offset/uint16_t size
  with uint16_t offset/uint32_t size
  with uint32_t offset/uint32_t size /* aligned to 8 bytes */
- strings are transmitted in UTF-16 with no termination and
  packet into a uint16/uint16 blob

metze
(This used to be commit 79103c51e5)
2007-10-10 13:46:20 -05:00
Andrew Tridgell
6e94a67530 r11738: test larger read/write calls. If you run smbtorture with -X (to enable
'dangerous' tests) then it does a write of 160k, which causes vista to
blue screen. Otherwise it does a 120k write which works fine.
(This used to be commit b4c5d7d017)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
baa3cba4c4 r11736: display EAs and streams in smb2 torture tests
(This used to be commit 2baea9a5ec)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
b51703baf1 r11730: added parsing and tests for a bunch more SMB2 getinfo levels
(This used to be commit ca65bf0235)
2007-10-10 13:46:18 -05:00
Andrew Tridgell
695e37d8e7 r11716: added a read/write test
(This used to be commit 7c229e5b9f)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
e465cad759 r11699: use create_complex_file() to setup a file with a wide range of
different attributes before running the getinfo level scanner, making
it easier to recognise levels
(This used to be commit 5d0cd9d041)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
67a85b3f1b r11697: - added a generic SMB2 getinfo call
- added a SMB2-SCANGETINFO test for scanning for available info levels

- added names for the info levels I recognise to smb2.h
(This used to be commit fe5986067e)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
4d74d259d8 r11695: added SMB2-SCAN torture test for scanning for active SMB2 opcodes
(This used to be commit aa3bcf952c)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
e27ba5e4c6 r11693: added a full async composite function for SMB2 that does:
- name resolution
 - socket connect
 - negprot
 - multi-stage session setup
 - tcon
(This used to be commit c1a8e866fe)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
2b7ee2ceee r11692: added a full composite (async) spnego session setup for SMB2. This
simplies the torture code a lot.
(This used to be commit 7bf1046fbb)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
91e1893741 r11691: added reply buffer code checks and oplock flags for create request/reply
(This used to be commit 26ed781375)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
222e197b84 r11687: filled in 3 more fields in the close reply
(This used to be commit 3a0abb3ff0)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
461ccc557b r11681: filled in a few more smb2_create() fields
(This used to be commit a95413568f)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
1b2e8caad3 r11680: added smb2_close(). This also demonstrates that file handles are 16
bytes, not 20 bytes (metze, you were right!)
(This used to be commit d3bcc6628c)
2007-10-10 13:46:12 -05:00
Andrew Tridgell
2e753f8518 r11679: opening/creating files in SMB2 now works. Lots of unknown parameters
in the call tho.
(This used to be commit 548fbd86b3)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
75a807425c r11677: print leading zeros
metze
(This used to be commit 19fb79b35d)
2007-10-10 13:46:12 -05:00
Andrew Tridgell
3e54c36fa4 r11674: SMB2 tree connect now works. We do 2 session setups and 2 tree
connects, giving the following output:

Running SMB2-CONNECT
Negprot reply:
current_time  = Fri Nov 11 20:10:42 2005 EST
boot_time     = Sat Nov 12 10:34:33 2005 EST
Session setup gave UID 0x40000000071
Session setup gave UID 0x140000000075
Tree connect gave tid = 0x7500000001
Tree connect gave tid = 0x7500000005
SMB2-CONNECT took 0.049024 secs
(This used to be commit a24a4c3110)
2007-10-10 13:46:11 -05:00
Andrew Tridgell
7a78d2d6b0 r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
(This used to be commit 72b34a7c1b)
2007-10-10 13:46:10 -05:00
Andrew Tridgell
86c1370cb0 r11666: filled in the basic session setup. Vista happily accepts the first
stage of the session setup, and waits for more.
(This used to be commit 804c229c3b)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
555b45e12c r11665: started to put some meat on the structure used for the SMB2 library
the call definitions will be in smb2_calls.h, which will play a
similar role that smb_interfaces.h plays for the old SMB protocol
(This used to be commit 4ef3902a8a)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
686070a147 r11663: start of a SMB2 torture test. Just does a negprot and prints some fields for now.
test name is SMB2-CONNECT
(This used to be commit 13f27fadca)
2007-10-10 13:46:09 -05:00