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