summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename "allow_smb2" -> "using_smb2" and make the usage clearer.Jeremy Allison2010-06-098-22/+31
|
* Split out the "finished write processing" code into a function so it can be ↵Jeremy Allison2010-06-091-40/+62
| | | | | | | | called by both sync and async code. Jeremy.
* Ensure we don't send SMB1 keepalives on an SMB2 connection.Jeremy Allison2010-06-091-0/+6
| | | | Jeremy.
* Split out the "finished read processing" code into a function so it can be ↵Jeremy Allison2010-06-091-36/+75
| | | | | | | | called by both sync and async code. Jeremy.
* Fix a valgrind error found by SMB2-COMPOUND test.Jeremy Allison2010-06-083-0/+31
| | | | | | | | If a file is closed we must also NULL out all chained_fsp pointers when the fsp is freed to prevent invalid pointer access. Jeremy.
* Second part of fix for 7501 - SMB2: CREATE request replies getting mangled.Jeremy Allison2010-06-081-67/+67
| | | | | | | | | Based on code from Ira Cooper <samba@ira.wakeful.net>, and also advice on refactoring the patch into a function call. outbuf vectors can be reallocated by smb2 processing code, so when returning interim responses we must not make assumptions about vector size. Jeremy
* Fix for bug 7501 - SMB2: CREATE request replies getting mangled.Ira Cooper2010-06-081-3/+1
| | | | | Code for dup_smb2_req() was duplicating the wrong vector (i, instead of i+2) when returning a non-minimal SMB2 response.
* Revert "s3:smbd Fix segfault if register_existing_vuid() fails"Volker Lendecke2010-06-081-12/+4
| | | | This reverts commit 8f1cec5faf4e26de8b9797777059e99f2a66558b.
* Revert "s3:smbd Give the kerberos session key a parent"Volker Lendecke2010-06-081-2/+0
| | | | This reverts commit 4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397.
* Revert "s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS"Volker Lendecke2010-06-082-5/+4
| | | | | | | | This reverts commit edba46ce94c335411ab337eeb4ef6f88fb3aae80. Conflicts: source3/auth/auth_ntlmssp.c
* Make aio_ex owned by a talloc context, not neccessarily on the null context.Jeremy Allison2010-06-071-8/+12
|
* Move "write_though" into aio_ex struct.Jeremy Allison2010-06-071-5/+5
|
* s3:smbd add utility function to check if there are open pipesSimo Sorce2010-06-071-8/+3
|
* s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2010-06-072-4/+5
| | | | | | | It's nicer to have an NTSTATUS return, and in s3compat there may be a reason other than 'no memory' why this can fail. Andrew Bartlett
* s3:smbd Give the kerberos session key a parentAndrew Bartlett2010-06-071-0/+2
| | | | | | I can't see what would free this, so this should prevent a memory leak. Andrew Bartlett
* s3:smbd Fix segfault if register_existing_vuid() failsAndrew Bartlett2010-06-071-4/+12
| | | | | | | The register_existing_vuid() call will handle both the ntlmssp_end and vuid invalidation internally, so we don't want to do it again. Andrew Bartlett
* Fix a long-standing bug with async io that would only be triggered by SMB2.Jeremy Allison2010-06-041-5/+5
| | | | | | | | | On normal or shutdown close, ensure we wait for any pending IO to complete before returning. Implement a blocking aio_suspend inside vfs_aio_fork.c. These changes pass make test when the aio_fork module is used by default on the test shares. Jeremy.
* wait_for_aio_completion() should return 0 on non-aio compiled case.Jeremy Allison2010-06-041-1/+1
|
* Rename req -> smbreq.Jeremy Allison2010-06-041-26/+26
|
* Change smbd_aio_complete_mid() -> smbd_aio_complete_aio_ex(). SimplifiesJeremy Allison2010-06-041-32/+4
| | | | | | the code and eliminates find_aio_ex(). Jeremy.
* s3-auth: Moved smbd user functions to a generic place.Andreas Schneider2010-06-042-406/+0
| | | | Reviewed-by: Simo Sorce <idra@samba.org>
* s3-smbd: Remove unneeded dependency of map_username to globals.c.Andreas Schneider2010-06-043-7/+3
| | | | Reviewed-by: Simo Sorce <idra@samba.org>
* Allow us to cope correctly with NT_STATUS_MORE_PROCESSING_REQUIRED when ↵Jeremy Allison2010-06-031-1/+7
| | | | | | downgrading from krb5 to NTLMSSP over SMB2. Jeremy.
* Found by Guenther - fix up our fallback paths from krb5 to NTLMSSP when ↵Jeremy Allison2010-06-031-8/+29
| | | | | | using SMB2. Jeremy.
* s3-security: use shared "Standard access rights.".Günther Deschner2010-06-031-1/+1
| | | | Guenther
* s3-security: remove duplicate Extra W2K flags.Günther Deschner2010-06-031-1/+1
| | | | Guenther
* s3-security: use shared SECINFO_DACL define.Günther Deschner2010-06-034-12/+12
| | | | Guenther
* s3-security: use shared SECINFO_SACL define.Günther Deschner2010-06-032-2/+2
| | | | Guenther
* s3-security: use shared SECINFO_GROUP define.Günther Deschner2010-06-034-7/+7
| | | | Guenther
* s3-security: use shared SECINFO_OWNER define.Günther Deschner2010-06-034-7/+7
| | | | Guenther
* s3-security: remove some more shared secdesc defines.Günther Deschner2010-06-031-3/+3
| | | | Guenther
* Ensure we remove SMB2 cancel requests from the active queueJeremy Allison2010-06-021-0/+1
| | | | | | now we don't remove them in the talloc destructor. Jeremy.
* Fix a crash bug found by Ira Cooper <samba@ira.wakeful.net>.Jeremy Allison2010-06-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | A create call comes in, goes async (on the oplock request). At a later time (just before a cancel request is received) it completes, and goes through smbd_smb2_request_reply() to send the reply to the create call. However, the output socket queue is full, so when tstream_writev_queue_send() is called from smbd_smb2_request_reply(), the smb2req stays on the "being processed" queue on sconn->smb2.requests, as only when tstream_writev_queue_send() completes is smbd_smb2_request_writev_done() get called, which will TALLOC_FREE the smb2req (and thus take if off the queue). The cancel comes in, gets processed and looks through the requests on the queue, and BANG - hits the smb2req that has already been processed and is outgoing.... Remove the request from the queue once tstream_writev_queue_send() is called and not in the talloc destructor function. Jeremy.
* Move to using a DATA_BLOB inside of struct aio_extra, not a char *.Jeremy Allison2010-06-021-16/+16
| | | | | | Will make using AIO in SMB2 easier. Jeremy.
* SMB2: Fix rename on Windows 7.Ira Cooper2010-06-011-8/+0
| | | | | | | This removes some code Jeremy (jra) suspected was bad. It turns out that the command window rename command will not work with the offending code in place. With it removed the bug is gone, and rename works.
* Don't use sigev_value.sival_int to just store the mid, use ↵Jeremy Allison2010-06-011-38/+26
| | | | | | | | | sigev_value.sival_ptr to store the private data structure. This allows easier use from SMB2. Ensure aio is initialized before the aio_pending_size check else aio will never be used. Jeremy.
* s3-smbd: remove unused sconn from token_contains_name().Günther Deschner2010-05-311-1/+0
| | | | Guenther
* s3:smbd map_username() doesn't need sconn anymoreSimo Sorce2010-05-314-8/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd user_ok doesn't need sconn anymoreSimo Sorce2010-05-311-7/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd user_in_list() doesn't need sconn anymoreSimo Sorce2010-05-312-6/+5
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd user_in_network() doesn't need sconn anymoreSimo Sorce2010-05-312-7/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd make yp cache local.Simo Sorce2010-05-313-20/+8
| | | | | | | | | | | | | | | | | The my_yp_domain variable is just a static cache needed to avoid making over and over expensive and potentially blocking calls to yp_get_default_domain(). Instead of keeping this onto the smbd_server_connection struct, just keep it local to the only function ever using this variable. This disentagle this function (and a number of calling functions) from having to pass around smbd_server_connection and thus having to link against smbd. It also removes a few ifdefs. Nothing changes from a global/local pov, as the smbd_server_connection variable passed around is also a global one. Signed-off-by: Andreas Schneider <asn@samba.org>
* ntlmssp: Make the ntlmssp.h from source3/ a common headerAndrew Bartlett2010-05-313-3/+3
| | | | | | | | | The code is not yet in common, but I hope to fix that soon. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3:auth Remove AUTH_NTLMSSP_STATE typedef.Andrew Bartlett2010-05-313-5/+5
| | | | | | | | | typedefs are no longer preferred Samba style. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3:auth Make AUTH_NTLMSSP_STATE a private structure.Andrew Bartlett2010-05-313-38/+28
| | | | | | | | | This makes it a little easier for it to writen in terms of GENSEC in future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Fix some debug messagesVolker Lendecke2010-05-311-4/+4
|
* s3-build: only use ndr_security.h where needed.Günther Deschner2010-05-315-0/+5
| | | | Guenther
* s3:smbd Use the right num_sidsSimo Sorce2010-05-291-1/+1
| | | | | We use s_i->ptok->num_sids everywhere else in this call and then suddenly we reference s_i->num_sids
* s3:smbd move messaging_context and memcache into globals.cAndrew Bartlett2010-05-282-26/+27
| | | | | | This helps vfstest, which previously had duplicate copies of these functions. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd split reload services/printers functions from server.cAndrew Bartlett2010-05-282-82/+109
| | | | | | | | | This helps vfstest, as it previously had duplicate copies of these functions. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>