summaryrefslogtreecommitdiffstats
path: root/source3/smbd/smb2_server.c
Commit message (Collapse)AuthorAgeFilesLines
* Update (C) for 2010.Jeremy Allison2010-04-281-0/+1
| | | | Jeremy.
* Don't return an intermediate reply on async on a pipe call (Windows doesn't).Jeremy Allison2010-04-271-0/+5
| | | | Jeremy.
* Implement oplocks within SMB2. Plumb into the existing SMB1 oplock system.Jeremy Allison2010-04-241-3/+2
| | | | | | Seems to work but needs more tests (to be added). Jeremy.
* When sending the initial async response, this is never part of a chain.Jeremy Allison2010-04-231-1/+1
| | | | | | Get the reply flags correct. Jeremy.
* Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.Jeremy Allison2010-04-221-8/+9
| | | | | | | | Makes SMB2Create call re-entrant internally. Now this infrastructure is in place, oplocks will follow shortly. Tested with Win7 client and with W2K8R2. Jeremy.
* Now SMB2 error messages are correctly being returned with the 1 byte data ↵Jeremy Allison2010-04-191-51/+49
| | | | | | area, smbd_smb2_request_error_ex() must call smbd_smb2_request_done_ex() in order to do the padding correctly on compound replies. Jeremy.
* Ensure vectors are always allocated with consistent size. Removes one byte ↵Jeremy Allison2010-04-191-20/+60
| | | | | | alloc on SMB2 error packet. Always use talloc_zero_array on out vectors - fixes valgrind errors in tevent writes. Jeremy.
* Remove an unused auto variable.Jeremy Allison2010-04-191-3/+0
| | | | Jeremy.
* s3-smb2: fix some c++ warnings.Günther Deschner2010-04-191-3/+3
| | | | Guenther
* Final fix for #7331 - Compound async SMB 2 requests don't work right.Jeremy Allison2010-04-181-4/+13
| | | | | | | | | | | | | | | Don't free the cancelled SMB2 req early, let the cancelation function take care of it. Return a NT_STATUS_CANCELLED when we find and cancel a request. Fix our SMB2 error returns to correctly set the structuresize to 9, and add the expected zero byte (see section 2.2.2 in the SMB2 spec.). This causes Samba to pass the test program in this bug report that W2K8R2 fails (heh heh :-). This is because we always cause compound requests to get to a cancelation point before dealing with a cancel request. Jeremy.
* Second part of fix for bug #7331 - Compound async SMB 2 requests don't work ↵Jeremy Allison2010-04-171-58/+158
| | | | | | | | | right. Cause us to match W2K8R2 by sending an interim compound reply followed by a async reply. Jeremy.
* First part of fix for bug #7331 - Compound async SMB 2 requests don't work ↵Jeremy Allison2010-04-171-86/+320
| | | | | | | | | | | | | | | | right. Gets us handling SMB2 compound async requests similar to W2K8R2 (and triggers the same client bug in the Win7 redirector). Great thanks to Ira Cooper <samba@ira.wakeful.net> for helping with this and to Metze for the wonderful async framework. The one thing I need to fix to make us identical to W2K8R2 is that when a compound request goes async at the end W2K8R2 splits the replies up into a compound non-async reply followed by a separate async reply. Currently we're doing the whole thing in a compound reply. Jeremy.
* Don't forget to initialize *p_creds_requested.Jeremy Allison2010-04-071-0/+1
| | | | Jeremy.
* Ensure we total up the correct number of creds requested in a compound request.Jeremy Allison2010-04-061-1/+7
|
* Make smbd_lock_socket/smbd_unlock_socket recursive with a ref_count.Jeremy Allison2010-03-311-1/+1
| | | | | | | | | As these always call exit_server, make that part of the function. Use _internal functions for the echo client. Metze please check ! Jeremy.
* Change the credential handling so that we start with maxmux creds,Jeremy Allison2010-02-241-7/+10
| | | | | | | | and then return to the client the number of credits per operation that they asked for. This is a more sensible algorithm than just blindly returning "20" on every reply, although we will probably still need more changes to this going forward. Jeremy.
* s3:smbd: implement SMB2 Cancel correctly.Stefan Metzmacher2009-08-171-4/+13
| | | | metze
* s3:smbd: allow SMB2 Cancel to have the async flag setStefan Metzmacher2009-08-141-6/+8
| | | | metze
* s3:smbd: fix parsing of the SMB2 bodyStefan Metzmacher2009-08-141-5/+7
| | | | | | Maybe there's no dynamic part on the wire. metze
* libcli: move some common SMB and SMB2 stuff into libcli/smb/Stefan Metzmacher2009-08-121-1/+1
| | | | | | This will hold code that's shared between source3 and source4. metze
* s3:smbd: rename conn => sconn for smbd_server_connection structsStefan Metzmacher2009-08-081-56/+56
| | | | | | | This should avoid confusion between smbd_server_connection and connection_struct variables. metze
* Fix a few uninitialized variable warningsVolker Lendecke2009-07-241-1/+1
| | | | I know those warnings are bogus, but both Coverity and gcc don't get it.
* s3:smbd: fix parsing of invalid SMB2 requests.Stefan Metzmacher2009-07-101-2/+2
| | | | | | | | | | Because of 0 - 2 => 0xFFFFFFFE, we got EMSGSIZE from the tstream layer. And terminate the transport connection. Instead we should let the caller deal with the invalid parameter, when checking the body size. So the caller always gets at least a 2 byte body. metze
* s3:smbd: add marshalling layer for SMB2 Lock supportStefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add marshalling layer for SMB2 Find (QueryDirectory) supportStefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add marshalling layer for SMB2 Break support (SMB 2.002 only)Stefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add marshalling layer for SMB2 SetInfo supportStefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add marshalling layer for SMB2 GetInfo supportStefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add support for SMB2 NotifyStefan Metzmacher2009-07-021-1/+1
| | | | metze
* s3:smbd: add support for async interim SMB2 responses and prepare SMB2 cancelStefan Metzmacher2009-06-241-1/+155
| | | | metze
* s3:smbd: keep a list of outstanding SMB2 requestsStefan Metzmacher2009-06-241-28/+65
| | | | metze
* s3:smbd: add smbd_smb2_send_oplock_break()Stefan Metzmacher2009-06-241-0/+88
| | | | metze
* s3:smbd: the SMB2-COMPOUND test shows that the related vs. unrelated flags ↵Stefan Metzmacher2009-06-241-0/+7
| | | | | | isn't checked first metze
* s3:smbd: only check the next_status for related requestsStefan Metzmacher2009-06-091-11/+12
| | | | metze
* s3:smbd: response with the same SMB2 flags as given by the clientStefan Metzmacher2009-06-091-1/+4
| | | | | | ...but also add the response flag. metze
* s3:smbd: only pass the chained file handle for related compounded SMB2 requestsStefan Metzmacher2009-06-091-0/+4
| | | | metze
* s3:smbd: make sure we pad compounded SMB2 responses to 8 bytesStefan Metzmacher2009-06-091-2/+47
| | | | metze
* s3:smbd: more validation of the incoming SMB2 requestsStefan Metzmacher2009-06-091-4/+94
| | | | metze
* s3:smbd: for now ignore all non NBT Session Message requests for SMB2Stefan Metzmacher2009-06-091-0/+9
| | | | metze
* s3:smbd: don't include 1 byte padding for the dynamic buffer of SMB2 responsesStefan Metzmacher2009-06-091-21/+9
| | | | | | It seems that Windows 2008 and Windows 7 doesn't do this anymore. metze
* s3:smbd: fix the logic for compounded requestsStefan Metzmacher2009-06-051-1/+1
| | | | metze
* s3:smbd: only setup the dyn iovec if a a dyn blob is givenStefan Metzmacher2009-06-051-2/+1
| | | | | | | Otherwise leave the default in there, which takes care of padding for compounded requests. metze
* s3:smbd: add support for SMB2 IoctlStefan Metzmacher2009-06-051-1/+1
| | | | | | We don't implement any level yet. metze
* s3:smbd: make smbd_server_connection_terminate() a macroStefan Metzmacher2009-06-051-3/+5
| | | | metze
* s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the ↵Stefan Metzmacher2009-06-051-20/+11
| | | | | | _ex() function metze
* Change smbd_smb2_request_error() to add a __location__.Jeremy Allison2009-06-041-6/+7
| | | | | This allows quick identification of smb2 parsing errors. Jeremy.
* Add NTLMSSP SPNEGO to smb2 auth. Tested with Win7.Jeremy Allison2009-06-041-1/+2
| | | | Jeremy.
* s3:smbd: implement SMB2 WriteStefan Metzmacher2009-06-031-1/+1
| | | | | | This only works on file shares. metze
* s3:smbd: implement SMB2 ReadStefan Metzmacher2009-06-031-1/+1
| | | | | | This only works works on file shares. metze
* s3:smbd: implement SMB2 FlushStefan Metzmacher2009-06-031-1/+1
| | | | | | This works only on file shares yet. metze