Jelmer Vernooij
63d718e243
r12696: Reduce the size of include/structs.h
...
(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
78c50015bb
r12694: Move some headers to the directory of the subsystem they belong to.
...
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
2cd5ca7d25
r12542: Move some more prototypes out to seperate headers
...
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10 13:47:55 -05:00
Andrew Tridgell
111a920fdb
r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
...
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback
this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792ded682e05134b66d433eeec293e6f1)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
89f5d66dfe
r12114: - smb2_keepalive() acts on the smb2_transport
...
- smb2_logoff() acts on the smb2_session
metze
(This used to be commit ae1ca2bb4affefff1026c03f0765faf28c2b316b)
2007-10-10 13:47:10 -05:00
Andrew Tridgell
fd7fd22e46
r12006: don't require callers to fill in pad bytes in SMB2 calls
...
(This used to be commit 6935765fda99a6efb19f6f72358d4d48fc35ad5e)
2007-10-10 13:46:58 -05:00
Stefan Metzmacher
28918cd0b0
r11996: don't overwrite the buffercode
...
metze
(This used to be commit fee5b6f40784e75a469320a584423c5030b69400)
2007-10-10 13:46:57 -05:00
Andrew Tridgell
6615907b94
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?
(This used to be commit f2b8857797328be64b0b85e875ae6d108e2aeaaa)
2007-10-10 13:46:53 -05:00
Tim Potter
03d301ead5
r11967: Fix more 64-bit warnings.
...
(This used to be commit 9c4436a124f874ae240feaf590141d48c33a635f)
2007-10-10 13:46:52 -05:00
Andrew Tridgell
9b2cd2e797
r11949: make sure we ask gensec to give us a session key
...
andrew, this answers your question on irc about whether the same
session key mechanisms are used in smb2. They are - the RPC-LSA secret
tests pass fine over ncacn_np on SMB2, which means the session key
must be working
(This used to be commit 91327885a2b6432ba20a8dd1370b632240d3263d)
2007-10-10 13:46:49 -05:00
Andrew Tridgell
1e935fcbde
r11906: opcode 13 appears to be keepalive. Metze guessed this one :-)
...
(This used to be commit afe2323dc10748b97e6b30dc0c783dbe04446d8c)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
1e3583475f
r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
...
brainstorming this one.
(This used to be commit a969ad592ae4cd8f7c66b1df4763fdc70328c967)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
6724c0185c
r11903: added smb2_tdis() (opcode 4)
...
(This used to be commit d606b45b5b6065b5d06024bcce00a23084a20eac)
2007-10-10 13:46:46 -05:00
Andrew Tridgell
a399cd3cea
r11901: added smb2_logoff() support (metze correctly guessed opcode 2 was
...
logoff)
(This used to be commit 6884ce66f2881eba834b419370f74111852fe022)
2007-10-10 13:46:45 -05:00
Stefan Metzmacher
d90914dda8
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
(This used to be commit fa98f09f8b8829e66aa37cd947ab4f0cbb7b5476)
2007-10-10 13:46:43 -05:00
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