1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
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