1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00
Commit Graph

68 Commits

Author SHA1 Message Date
Stefan Metzmacher
f2e97983f2 r12725: some minor updates
metze
2007-10-10 13:49:45 -05:00
Jelmer Vernooij
6391761601 r12696: Reduce the size of include/structs.h 2007-10-10 13:49:40 -05:00
Jelmer Vernooij
c722f665c9 r12694: Move some headers to the directory of the subsystem they belong to. 2007-10-10 13:49:39 -05:00
Jelmer Vernooij
70e7449318 r12608: Remove some unused #include lines. 2007-10-10 13:49:03 -05:00
Jelmer Vernooij
0aca5fd513 r12542: Move some more prototypes out to seperate headers 2007-10-10 13:47:55 -05:00
Andrew Tridgell
f9413ce792 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
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
ae1ca2bb4a r12114: - smb2_keepalive() acts on the smb2_transport
- smb2_logoff() acts on the smb2_session

metze
2007-10-10 13:47:10 -05:00
Andrew Tridgell
6935765fda r12006: don't require callers to fill in pad bytes in SMB2 calls 2007-10-10 13:46:58 -05:00
Stefan Metzmacher
fee5b6f407 r11996: don't overwrite the buffercode
metze
2007-10-10 13:46:57 -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
Tim Potter
9c4436a124 r11967: Fix more 64-bit warnings. 2007-10-10 13:46:52 -05:00
Andrew Tridgell
91327885a2 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
2007-10-10 13:46:49 -05:00
Andrew Tridgell
afe2323dc1 r11906: opcode 13 appears to be keepalive. Metze guessed this one :-) 2007-10-10 13:46:47 -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
Andrew Tridgell
d606b45b5b r11903: added smb2_tdis() (opcode 4) 2007-10-10 13:46:46 -05:00
Andrew Tridgell
6884ce66f2 r11901: added smb2_logoff() support (metze correctly guessed opcode 2 was
logoff)
2007-10-10 13:46:45 -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
02e3cb87c7 r11894: fixed SMB2 trans code for pipe_flags 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
Volker Lendecke
7256157d01 r11796: Two more uses of !composite_is_ok 2007-10-10 13:46:28 -05:00
Andrew Tridgell
872e2a49d8 r11795: used a couple more of volkers composite helper functions. They
certainly make the code more compact.
2007-10-10 13:46:28 -05:00
Andrew Tridgell
71e3e61941 r11791: simplify the SMB2 connect code following some suggestions from volker 2007-10-10 13:46:28 -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
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
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
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
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