1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

1181 Commits

Author SHA1 Message Date
Andrew Tridgell
f5ed8cc829 r12010: - added support for domain specific SID codes in SDDL strings
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema)

- fixed 'mixed coded declarations' bug
(This used to be commit c30e7698e8e1d9991d35bf86c0d4041a1814ad92)
2007-10-10 13:46:59 -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
Andrew Tridgell
8dfec3305c 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
(This used to be commit dbdeecea01a8b362a9a525a3689cb03662a86776)
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
f5d4623ea5 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
(This used to be commit f32739307464a1f0c835cff886b8c4b960778900)
2007-10-10 13:46:54 -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
Stefan Metzmacher
9d3b3e8395 r11971: add nbt specific continue wrapper
metze
(This used to be commit b8c5978df18b98db89069e02597d483f893e39ae)
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
Stefan Metzmacher
e052c3d66b r11941: fix cut'n'paste bug
metze
(This used to be commit fd77cfa49016d403c3f4c60c2422d41498438c17)
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
cc6891f883 r11893: fixed a dependency problem
(This used to be commit 085bf952dc1b8861ac6fecf25c508594f9ddf454)
2007-10-10 13:46:42 -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
Volker Lendecke
8383a3459a r11885: Add forgotten files
(This used to be commit 470cc5952981c3625c7e35f44c9fd41d19593396)
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
e8f17538a7 r11848: separate out the info levels common to SMB and SMB2 for raw_search
(This used to be commit ed8d3073472fbb0850209f81dd04bd94f6d1c33d)
2007-10-10 13:46:37 -05:00
Volker Lendecke
a6852523d6 r11812: Convert winbind to the async bind routines. Also remove tridge's hack for the
winbind "bug" :-)

Volker
(This used to be commit fb9a3c7ef376f289288c71bc47d67f548ddb7194)
2007-10-10 13:46:32 -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
c3cd4a0087 r11756: split out the parsers for the pass-through levels of QFSINFO and
QFILEINFO levels in trans2, so they can be shared with SMB2
(This used to be commit 5ca2d609e6a3766ebd07763f850ecc62209a7db7)
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
Stefan Metzmacher
43fa1b6dbd r11740: add some EA error codes
metze
(This used to be commit b1afcced395812477365befad1ed37a7cdafa275)
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
6f49a2404c 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.
(This used to be commit c4115293d83a4a6d103e049c5832d4bcdc0a9dbc)
2007-10-10 13:46:17 -05:00