Stefan Metzmacher
3cf50e26b7
r16873: - grow the buffer with the correct size, we maybe had 1 byte preallocated
...
- body_size doesn't contain the preallocated byte so don't remove it
metze
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
58baae8fc4
r16734: the 2 bytes after the opcode and before the flags,
...
is no padding...
the following patch is needed for vista beta2 to connect to samba4
metze
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
f309209629
r16705: fix a bug found by valgrind...
...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)
metze
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
81702c36c2
r16566: add pull function for a site32/offset32 blob
...
metze
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
c7e8e79d75
r15770: when there's a dynamic body, we need to send the first byte even if the
...
dynamic size if 0
metze
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
92c19b1ba4
r15744: convert_string_talloc() handles src_len == 0 as error
...
but it's valid in this case
metze
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
7829100e1e
r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
...
also if the dynamic flag should be set
metze
2007-10-10 14:05:54 -05:00
Jelmer Vernooij
7af59357b9
r15191: Avoid uint_t as it's not standard.
2007-10-10 14:04:15 -05:00
Andrew Tridgell
507def57cb
r14434: use the right enum type
2007-10-10 13:57:24 -05:00
Jelmer Vernooij
70e7449318
r12608: Remove some unused #include lines.
2007-10-10 13:49:03 -05:00
Andrew Tridgell
c0288aa8cd
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
2007-10-10 13:46:26 -05:00
Andrew Tridgell
ff19709298
r11775: added support for creating files on SMB2 with initial EA lists and an ACL
2007-10-10 13:46:25 -05:00
Andrew Tridgell
da0b6fb936
r11771: - split out the setinfo blob construction in the libcli/raw code
...
- added a smb2_setinfo call
- added smb2_setinfo_file*() calls
2007-10-10 13:46:24 -05:00
Andrew Tridgell
387ec2b17f
r11754: make the SMB2 blob push routines take offsets, so they fit better with
...
the rest of the packet construction code
2007-10-10 13:46:23 -05:00
Andrew Tridgell
1b5cdf92cc
r11751: fixed the req->out.size calculation (it needs to be the complete
...
request size, including dynamic portion)
2007-10-10 13:46:22 -05:00
Stefan Metzmacher
17c4b6298d
r11743: - push the length at the correct offset
...
- let us push empty strings
metze
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
e985ab117c
r11742: fix pushing of 0 length blobs
...
metze
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
79103c51e5
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
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
9b616516ca
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
2007-10-10 13:46:18 -05:00
Volker Lendecke
d760583e38
r11721: Fix warnings
2007-10-10 13:46:17 -05:00
Andrew Tridgell
d3556cbfa3
r11715: added SMB2 read and write requests
2007-10-10 13:46:17 -05:00
Andrew Tridgell
fe5986067e
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
2007-10-10 13:46:15 -05:00
Andrew Tridgell
7bf1046fbb
r11692: added a full composite (async) spnego session setup for SMB2. This
...
simplies the torture code a lot.
2007-10-10 13:46:14 -05:00
Andrew Tridgell
548fbd86b3
r11679: opening/creating files in SMB2 now works. Lots of unknown parameters
...
in the call tho.
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
653f5ccd61
r11675: a more general way of getting rid of compiler warnings and errors
...
metze
2007-10-10 13:46:11 -05:00
Andrew Tridgell
a24a4c3110
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
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
c0eebe293f
r11670: fix the build
...
metze
2007-10-10 13:46:10 -05:00
Andrew Tridgell
72b34a7c1b
r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
2007-10-10 13:46:10 -05:00
Andrew Tridgell
4ef3902a8a
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
2007-10-10 13:46:09 -05:00
Andrew Tridgell
68422dc73f
r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation
2007-10-10 13:46:09 -05:00