1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

1380 Commits

Author SHA1 Message Date
Andrew Tridgell
6935765fda r12006: don't require callers to fill in pad bytes in SMB2 calls 2007-10-10 13:46:58 -05:00
Andrew Tridgell
dbdeecea01 r12005: added a SDDL (Security Descriptor Description Language) parser. Not
all flags are covered yet, and object aces aren't done yet.

This is needed for ACL support in ldb, as the default security
descriptor for each object class is given by the
defaultSecurityDescriptor attribute in the schema, which is stored in
SDDL format
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
f327393074 r11982: ensure the fde event gets freed before the socket itself, as otherwise
we get a error from epoll about disabling events for a file descriptor
that is closed
2007-10-10 13:46:54 -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
Stefan Metzmacher
b8c5978df1 r11971: add nbt specific continue wrapper
metze
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
Stefan Metzmacher
fd77cfa490 r11941: fix cut'n'paste bug
metze
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
085bf952dc r11893: fixed a dependency problem 2007-10-10 13:46:42 -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
Volker Lendecke
470cc59529 r11885: Add forgotten files 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
ed8d307347 r11848: separate out the info levels common to SMB and SMB2 for raw_search 2007-10-10 13:46:37 -05:00
Volker Lendecke
fb9a3c7ef3 r11812: Convert winbind to the async bind routines. Also remove tridge's hack for the
winbind "bug" :-)

Volker
2007-10-10 13:46:32 -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
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