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
d1067fc25d
r11777: display the security_descriptor in torture_smb2_all_info()
2007-10-10 13:46:25 -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
ba897e537b
r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
2007-10-10 13:46:23 -05:00
Andrew Tridgell
5ca2d609e6
r11756: split out the parsers for the pass-through levels of QFSINFO and
...
QFILEINFO levels in trans2, so they can be shared with SMB2
2007-10-10 13:46:23 -05:00
Andrew Tridgell
4ce48d02aa
r11755: added names for all of the SMB2 qfs info levels (they all map exactly
...
to equivalent SMB qfs levels)
2007-10-10 13:46:23 -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
583f3c415e
r11752: setup the dynamic pointer for incoming packets too
2007-10-10 13:46:22 -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
b1afcced39
r11740: add some EA error codes
...
metze
2007-10-10 13:46:20 -05:00
Andrew Tridgell
54fda24379
r11737: use _smb_setlen2() to allow for 24 bit lengths in SMB2 packets
2007-10-10 13:46:19 -05:00
Andrew Tridgell
dd24c0e80c
r11735: fixed the ALL_EAS smb2 level parsing
2007-10-10 13:46:19 -05:00
Andrew Tridgell
e51fb2b44a
r11731: fixed typo noticed by metze
2007-10-10 13:46:19 -05:00
Andrew Tridgell
ca65bf0235
r11730: added parsing and tests for a bunch more SMB2 getinfo levels
2007-10-10 13:46:18 -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
c4115293d8
r11714: put in a workaround for a winbind problem volker asked me about. The
...
problem is that winbind currently relies on being able to receive on a
smb connection from within the same connections receive routine. This
means it relies on a non-serialised connection, so disable the
serialisation until winbind is fixed.
The correct fix will be to get rid of full_request() in dcerpc.c so
that bind requests can be fully async.
2007-10-10 13:46:17 -05:00
Andrew Tridgell
6a47cd65a8
r11713: separate out the setting of the fde in the packet context from the
...
enabling of packet serialisation
2007-10-10 13:46:17 -05:00
Andrew Tridgell
2919d42286
r11700: added structure definitions for many of the getinfo structures
2007-10-10 13:46:15 -05:00
Andrew Tridgell
845bbef803
r11698: added some more level names
2007-10-10 13:46:15 -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
2a45476e94
r11696: added a few more opcode names
2007-10-10 13:46:14 -05:00
Andrew Tridgell
6381fe7241
r11694: fixed 2 valgrind errors
2007-10-10 13:46:14 -05:00
Andrew Tridgell
c1a8e866fe
r11693: added a full async composite function for SMB2 that does:
...
- name resolution
- socket connect
- negprot
- multi-stage session setup
- tcon
2007-10-10 13:46:14 -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
26ed781375
r11691: added reply buffer code checks and oplock flags for create request/reply
2007-10-10 13:46:13 -05:00
Andrew Tridgell
3a0abb3ff0
r11687: filled in 3 more fields in the close reply
2007-10-10 13:46:13 -05:00
Andrew Tridgell
02d7331903
r11683: fixed create call
2007-10-10 13:46:13 -05:00
Andrew Tridgell
173a213f91
r11682: filled in access_mask in tcon reply
2007-10-10 13:46:13 -05:00
Andrew Tridgell
a95413568f
r11681: filled in a few more smb2_create() fields
2007-10-10 13:46:13 -05:00
Andrew Tridgell
d3bcc6628c
r11680: added smb2_close(). This also demonstrates that file handles are 16
...
bytes, not 20 bytes (metze, you were right!)
2007-10-10 13:46:12 -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
2084d62dd5
r11671: - make sure req is initialized
...
- only free the buffer when there's no request
- call async callback on error
metze
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
c0eebe293f
r11670: fix the build
...
metze
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
43aa5cffd3
r11669: - make sure req is initialized
...
- call async callback on error
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
804c229c3b
r11666: filled in the basic session setup. Vista happily accepts the first
...
stage of the session setup, and waits for more.
2007-10-10 13:46:09 -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
Andrew Tridgell
d19235ede5
r11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, or
...
the associated send queue
- fixed negnowait to not watch for the SMBCLI_REQUEST_SEND state
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
e6eb0fd2c2
r11649: - add support for ntcancel replies (they only happen in error cases,
...
e.g when you supply an invalid TID or VUID)
- as we don't yet understand how to check the smb_signing of this
replies, we just ignore the whole packet
abartlet,jra,tridge:
can someone try to find out how to create and verify
the signatures for this replies.
what I noticed is that still use the increment by one for the request,
and later requests are still generated fine, only the generating and verifying
of the ntcancel replies make problems
metze
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
356e7d037c
r11647: add smbcli_ prefix
...
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
16f2d92618
r11644: free the buffer when it's not used
...
metze
2007-10-10 13:46:07 -05:00