summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb2/receive.c
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14Fixed SMB2 rename operations from Vista clientsAndrew Tridgell1-1/+1
We needed a flag in bufinfo to mark packets as SMB2, as it seems that SMB2 uses a different format for the RenameInformation buffer than SMB does Also handle the fact that SMB2 clients give the full path to the target file in the rename, not a relative path (This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-0/+20
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2008-02-12updated SMB2 header defines to match WSPP docsAndrew Tridgell1-9/+9
(This used to be commit d2c6ad55eca27f50a38fc6e2a85032eddb3f0aae)
2007-12-21r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and ↵Jelmer Vernooij1-1/+1
wbsrv_connection. (This used to be commit 7c008664238ed966cb82adf5b25b22157bb50730)
2007-10-10r25551: Convert to standard bool type.Jelmer Vernooij1-3/+3
(This used to be commit c9651e2c5c078edee7b91085e936a93625c8d708)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-1/+1
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-1/+2
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r23045: forward SMB2 oplock breaks to the clientStefan Metzmacher1-1/+1
metze (This used to be commit 577acc198b096a1e182568b6db93c2da132b647e)
2007-10-10r22866: handle incoming chained smb2 requests in our server code to letStefan Metzmacher1-17/+100
the windows explorer in longhorn beta3 work. metze (This used to be commit 2390c9f24daccec917608cac0870890cdc73cb1c)
2007-10-10r18686: Fix typo protocl->protocolVolker Lendecke1-1/+2
(This used to be commit 14b88fefa088b39ca1e6b7d0ef08310d233c6788)
2007-10-10r17084: implement SMB2 Cancel in the server,Stefan Metzmacher1-5/+98
that makes it possible for clients to cancel async requests, like NOTIFY... metze (This used to be commit eaccd3c4353833daf584aaea4d7e8f11004a8072)
2007-10-10r17012: don't try to send any data when the socket is gone already...Stefan Metzmacher1-0/+13
(fixes crash bugs) metze (This used to be commit b7418aec33033577de2420c70a8b94a2fb7901dd)
2007-10-10r16734: the 2 bytes after the opcode and before the flags,Stefan Metzmacher1-2/+2
is no padding... the following patch is needed for vista beta2 to connect to samba4 metze (This used to be commit 58baae8fc463cd2c4e4ce532c153ad80313b03eb)
2007-10-10r16705: fix a bug found by valgrind...Stefan Metzmacher1-2/+4
as we setup the 1 padding byte for non present dynamic part, we need to overwrite it when we're getting a real dynamic part, so we need to remove the buf->size +=1 when we do the first push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed) metze (This used to be commit f309209629ad1b63a76fc06163a3eeb07dce4c86)
2007-10-10r15770: when there's a dynamic body, we need to send the first byte even if theStefan Metzmacher1-0/+1
dynamic size if 0 metze (This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)
2007-10-10r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0Stefan Metzmacher1-2/+11
also if the dynamic flag should be set metze (This used to be commit 7829100e1ee79f4f5d24004af221288e19c09b3e)
2007-10-10r15304: Fix smbd build, more updates on getting --enable-dso to build againJelmer Vernooij1-0/+1
(This used to be commit 3ef9326386ba1c210166302cbcf02d2ed3f19944)
2007-10-10r15191: Avoid uint_t as it's not standard.Jelmer Vernooij1-1/+1
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10r14739: keep the last request time for the smbsrv_connection,Stefan Metzmacher1-3/+6
smbsrv_session and smbsrv_tcon for management tools metze (This used to be commit 2c87f210e9e68de42dc45ca6532f3f33f4b6ce95)
2007-10-10r12725: some minor updatesStefan Metzmacher1-1/+1
metze (This used to be commit f2e97983f278211c6d70400ce1f43d6a69df0d8a)
2007-10-10r12696: Reduce the size of include/structs.hJelmer Vernooij1-0/+1
(This used to be commit 63917616016133c623fc6ff59454bc313ee7dd8f)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-1/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12102: for SMB2 we need to allocate tcons per sessionStefan Metzmacher1-4/+1
metze (This used to be commit 4d527ac005086c2db954578b4126ca128e436e01)
2007-10-10r12095: the most SMB2 opcodes need a valid session and tcon,Stefan Metzmacher1-0/+46
metze (This used to be commit 40b301c6bdb329ad347ac8a474be85dcbc671518)
2007-10-10r12092: - add dummy functions for the missing SMB2 opcodesStefan Metzmacher1-1/+16
- implement keepalive and logoff metze (This used to be commit 859ab627f45a5acca1deb66b8abdc38eaf49e5a2)
2007-10-10r11968: More warning fixes. We're on track to getting to double digits forTim Potter1-1/+1
the number of warnings generated now. (This used to be commit d479f2d7607adc698d71c5ba26932c72a26dcaab)
2007-10-10r11789: - add the start of a SMB2 serverStefan Metzmacher1-0/+269
- it does Negprot and SessionSetup yet the rest returns NT_STATUS_NOT_IMPLEMENTED - it's off by default, enable with: smbsrv:enable smb2 = yes - negotition in the SMB Negprot isn't supported yet - it's only tested with smbtorture SMB2-CONNECT not with vista as client metze (This used to be commit 08b31d5f618d2e416cb9812ad3a49754cd7212b8)