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

85 Commits

Author SHA1 Message Date
Stefan Metzmacher
1a9bfa2ac9 r15820: this line was just for testing
metze
2007-10-10 14:08:28 -05:00
Stefan Metzmacher
4a307d7185 r15815: add SMB2 Lock client code
metze
2007-10-10 14:08:27 -05:00
Stefan Metzmacher
c7e8e79d75 r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0

metze
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
92c19b1ba4 r15744: convert_string_talloc() handles src_len == 0 as error
but it's valid in this case

metze
2007-10-10 14:08:12 -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
Stefan Metzmacher
7829100e1e r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
also if the dynamic flag should be set

metze
2007-10-10 14:05:54 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -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
Andrew Tridgell
40e5bfdb0f r14435: return after an error 2007-10-10 13:57:24 -05:00
Andrew Tridgell
507def57cb r14434: use the right enum type 2007-10-10 13:57:24 -05:00
Stefan Metzmacher
be6d5298a2 r14256: - rename smb_file -> smb_handle
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo

metze
2007-10-10 13:57:06 -05:00
Stefan Metzmacher
2ef3f59709 r14173: change smb interface structures to always use
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2

the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2

metze
2007-10-10 13:56:57 -05:00
Jelmer Vernooij
2c74698032 r13960: Generate makefile rules for installing/removing shared modules. 2007-10-10 13:52:32 -05:00
Stefan Metzmacher
569275bc2b r13935: add dependecies
metze
2007-10-10 13:52:28 -05:00
Jelmer Vernooij
1228358767 r13924: Split more prototypes out of include/proto.h + initial work on header
file dependencies
2007-10-10 13:52:24 -05:00
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