Andrew Tridgell
b227b98a6c
r11894: fixed SMB2 trans code for pipe_flags
...
(This used to be commit 02e3cb87c7673788e3861f33356a18b8d38d2d66)
2007-10-10 13:46:43 -05:00
Andrew Tridgell
2f74901802
r11891: - added pipe_flags field in smb2_trans
...
- while running dcerpc over SMB2, the server will occasionally send us
a oh-so-useful STATUS_PENDING result meaning "I don't have a result
for you yet, but I'm working on it". These can be discarded :-)
(This used to be commit 24588a9c499536299d7aaf5b56ff73fb255290ca)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
310fa87509
r11888: - added SMB2 trans support
...
- added session key to SMB2
- renamed 'unknown2' in create to 'impersonation'
(This used to be commit aef915f312a78bf8a4123f7c40fcd14ff293d934)
2007-10-10 13:46:41 -05:00
Andrew Tridgell
f7c03b2abe
r11849: added mapping between SMB2 and SMB find/search levels
...
(This used to be commit 77e0cb999c776d2cfc806445d36135e5ba3a5f3d)
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 8792bc07d927e6470874230153177748afae3ee8)
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 8c7c54a46dfb91c053d07a5e606892a41213c605)
2007-10-10 13:46:29 -05:00
Volker Lendecke
771d4fab26
r11796: Two more uses of !composite_is_ok
...
(This used to be commit 7256157d01ff47d33706dadd45851cf2fbbce3a6)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
27bab09cdb
r11795: used a couple more of volkers composite helper functions. They
...
certainly make the code more compact.
(This used to be commit 872e2a49d8a1ad1f9a6e2f2d323b3471aeb9cba6)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
552c0111a1
r11791: simplify the SMB2 connect code following some suggestions from volker
...
(This used to be commit 71e3e61941621f72f45708340f5d03b2b79580b4)
2007-10-10 13:46:28 -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 c0288aa8cd46ca384074f89430c226d725c39475)
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 d1067fc25df57b1b6ef59a69f979ed76df5c46cd)
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 ff197092988cee64742f83df23c43ae664a196f9)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
2ff21db535
r11771: - split out the setinfo blob construction in the libcli/raw code
...
- added a smb2_setinfo call
- added smb2_setinfo_file*() calls
(This used to be commit da0b6fb93683331134ef2f4abd8707e0c3fc6d9d)
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 ba897e537b9a1544dc214e9d5504c87fee6fced2)
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 4ce48d02aa12d6fa699bf8b250b14851870f0096)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
fe996e8ac6
r11754: make the SMB2 blob push routines take offsets, so they fit better with
...
the rest of the packet construction code
(This used to be commit 387ec2b17ff30a1c040b460b498c8fa7d8770593)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
94ae534128
r11752: setup the dynamic pointer for incoming packets too
...
(This used to be commit 583f3c415ea33ddf5f4065a66f6fae49ab48455e)
2007-10-10 13:46:22 -05:00
Andrew Tridgell
1c71db99aa
r11751: fixed the req->out.size calculation (it needs to be the complete
...
request size, including dynamic portion)
(This used to be commit 1b5cdf92cc7793b08d7c46ef00d4ff696b31c15e)
2007-10-10 13:46:22 -05:00
Stefan Metzmacher
fb90bebab6
r11743: - push the length at the correct offset
...
- let us push empty strings
metze
(This used to be commit 17c4b6298d757f2e53fe764608504bf737005cbe)
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
ed069c1771
r11742: fix pushing of 0 length blobs
...
metze
(This used to be commit e985ab117c6afb2ea575b55bfaa97b0795ec5745)
2007-10-10 13:46:20 -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 79103c51e5c752fbdb4d25a0047b65002828df89)
2007-10-10 13:46:20 -05:00
Andrew Tridgell
b16543648e
r11737: use _smb_setlen2() to allow for 24 bit lengths in SMB2 packets
...
(This used to be commit 54fda24379ca1a20d6de2edf64dd79b3fe80a37d)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
ab0d0f0623
r11735: fixed the ALL_EAS smb2 level parsing
...
(This used to be commit dd24c0e80cf07bda700a0abb84a7a053d817f903)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
8dc40d6803
r11731: fixed typo noticed by metze
...
(This used to be commit e51fb2b44ad524620451807cccb186dd4be704c7)
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 ca65bf0235cbfab451e5d5ceac9f714acc0cd46c)
2007-10-10 13:46:18 -05:00
Stefan Metzmacher
de5d71aebe
r11722: make the smb2_push/pull functions take a smb2_request_buffer
...
and the pull ones also a TALLOC_CTX, then we can reuse this functions
in the server later
metze
(This used to be commit 9b616516cae269f0870e9b9a9cecd8ee3f0a9095)
2007-10-10 13:46:18 -05:00
Volker Lendecke
61317df8aa
r11721: Fix warnings
...
(This used to be commit d760583e388157ff25e317da06c57e5a42f171bd)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
c6395a30b0
r11715: added SMB2 read and write requests
...
(This used to be commit d3556cbfa38447d2d385b697c1855b3c13d42744)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
614950aed3
r11713: separate out the setting of the fde in the packet context from the
...
enabling of packet serialisation
(This used to be commit 6a47cd65a8b588f9ddd375c57caaba08281e7cbb)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
72565088bc
r11700: added structure definitions for many of the getinfo structures
...
(This used to be commit 2919d4228636f1d61d930a37cddd5b1700bf2233)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
36e4374b1d
r11698: added some more level names
...
(This used to be commit 845bbef8038b776b32da0c9c55ae9375feee4961)
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 fe5986067e2aaca039d70393ccc8761434f18fe6)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
a1562e2380
r11696: added a few more opcode names
...
(This used to be commit 2a45476e94a248733333df29da57513bd114f213)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
56712033d5
r11694: fixed 2 valgrind errors
...
(This used to be commit 6381fe72417a5cd231b63a87a6a0ba9c65030ce6)
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 c1a8e866fe6a0544b7b26da451ea093cdcacdd8f)
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 7bf1046fbb7fd83fecb2fa645628ba9a17aab037)
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 26ed781375c03958241d8c93324e04e948944d01)
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 3a0abb3ff0b532179780ed95f8fcb4bca6e040b1)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
be77dac05f
r11683: fixed create call
...
(This used to be commit 02d733190340fbb611443b0cc484813ba026eafe)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
b034156bd5
r11682: filled in access_mask in tcon reply
...
(This used to be commit 173a213f915aa929cc2a6bfef06954e665b3d694)
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 a95413568f1e45691524dfd8e9159a3bafe358ea)
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 d3bcc6628cde9ddedf0fd408cbee573f133ce582)
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 548fbd86b3b114493943b50669bdcba2f4ed87f2)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
7935df168f
r11675: a more general way of getting rid of compiler warnings and errors
...
metze
(This used to be commit 653f5ccd61f2555bbd49b81c5cc660962b31aa68)
2007-10-10 13:46:11 -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 a24a4c311005dec4c5638e9c7c10e5e2f9872f4d)
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
5f58c67b82
r11671: - make sure req is initialized
...
- only free the buffer when there's no request
- call async callback on error
metze
(This used to be commit 2084d62dd54c230c6494e482cb346b3ea959e6fb)
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
d9d90e105b
r11670: fix the build
...
metze
(This used to be commit c0eebe293f341dcf35229c2cbbc3029f6f853abb)
2007-10-10 13:46:10 -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 72b34a7c1b66af6be02f66639efc55a19c73e387)
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 804c229c3ba7f866a7f3d66684e268d5ddc820ce)
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 4ef3902a8a99a0b8caa81a07ba07830d7cbbc32c)
2007-10-10 13:46:09 -05:00