Andrew Tridgell
3aaa2e86d9
updated SMB2 code for getinfo according to WSPP docs
...
- Updated getinfo structures and field names
- also updated the protocol revision number handling to reflect
new docs
2008-02-14 17:11:36 +11:00
Andrew Tridgell
5913e3e549
updated SMB2 tcon as per WSPP docs
2008-02-13 10:13:28 +11:00
Andrew Tridgell
9dc284770d
converted the out side of SMB2 negprot handling
...
This follows the SMB2 PFIF docs. Current versions of Vista can now connect to Samba4 as a SMB2 server
and do basic operations
2008-02-12 16:20:13 +11:00
Andrew Tridgell
55af8acc7b
fixed up the .in side of SMB2 negprot
...
fixed the input side of the SMB2 negprot structure and parsers according to the documentation
2008-02-12 12:54:44 +11:00
Jelmer Vernooij
459e1466a4
r26376: Add context for libcli_resolve.
2007-12-21 05:49:12 +01:00
Andrew Tridgell
fcf38a38ac
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
de50e0ccdd
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
a455dc7a83
r16975: implement SMB2 Notify call in the client lib
...
metze
2007-10-10 14:10:04 -05:00
Stefan Metzmacher
58bed7322c
r16875: implement SMB2 Find in the frontend
...
metze
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
dcc02df829
r16406: use the generic smb_handle in smb2_getinfo/smb2_setinfo
...
metze
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
9180635317
r15741: move smb2 request structures into the main smb request structs
...
as new levels
metze
2007-10-10 14:08:11 -05:00
Jelmer Vernooij
51b4270513
r14542: Remove librpc, libndr and libnbt from includes.h
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
e1f896948f
r14511: Install more headers
2007-10-10 13:57:35 -05:00
Jelmer Vernooij
6391761601
r12696: Reduce the size of include/structs.h
2007-10-10 13:49:40 -05:00
Andrew Tridgell
f2b8857797
r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and that
...
it only appeared to be like a SMBtrans request as it was being called
with function 0x11c017 which is "named pipe read write"
I wonder if this means we could do DCE/RPC over SMB using ntioctl
calls as well?
2007-10-10 13:46:53 -05:00
Andrew Tridgell
a969ad592a
r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
...
brainstorming this one.
2007-10-10 13:46:47 -05:00
Stefan Metzmacher
fa98f09f8b
r11895: - reorder some code to make it easier to follow, how the fields appear on the wire
...
- add some comments to the header file, to represent the wire format
metze
2007-10-10 13:46:43 -05:00
Andrew Tridgell
24588a9c49
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 :-)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
aef915f312
r11888: - added SMB2 trans support
...
- added session key to SMB2
- renamed 'unknown2' in create to 'impersonation'
2007-10-10 13:46:41 -05:00
Andrew Tridgell
77e0cb999c
r11849: added mapping between SMB2 and SMB find/search levels
2007-10-10 13:46:38 -05:00
Andrew Tridgell
8792bc07d9
r11801: - added basic SMB2 find support
...
- added SMB2-SCANFIND test
- cleaned up continue flags in EAs and find requests
2007-10-10 13:46:29 -05:00
Andrew Tridgell
8c7c54a46d
r11800: - filled in unknown fields in SMB2 all_info level
...
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
2007-10-10 13:46:29 -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
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
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
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
Andrew Tridgell
dd24c0e80c
r11735: fixed the ALL_EAS smb2 level parsing
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
Andrew Tridgell
d3556cbfa3
r11715: added SMB2 read and write requests
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
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
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
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
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