summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-06-04s3-smbd: Remove unneeded dependency of map_username to globals.c.Andreas Schneider3-7/+3
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-03Allow us to cope correctly with NT_STATUS_MORE_PROCESSING_REQUIRED when ↵Jeremy Allison1-1/+7
downgrading from krb5 to NTLMSSP over SMB2. Jeremy.
2010-06-03Found by Guenther - fix up our fallback paths from krb5 to NTLMSSP when ↵Jeremy Allison1-8/+29
using SMB2. Jeremy.
2010-06-03s3-security: use shared "Standard access rights.".Günther Deschner1-1/+1
Guenther
2010-06-03s3-security: remove duplicate Extra W2K flags.Günther Deschner1-1/+1
Guenther
2010-06-03s3-security: use shared SECINFO_DACL define.Günther Deschner4-12/+12
Guenther
2010-06-03s3-security: use shared SECINFO_SACL define.Günther Deschner2-2/+2
Guenther
2010-06-03s3-security: use shared SECINFO_GROUP define.Günther Deschner4-7/+7
Guenther
2010-06-03s3-security: use shared SECINFO_OWNER define.Günther Deschner4-7/+7
Guenther
2010-06-03s3-security: remove some more shared secdesc defines.Günther Deschner1-3/+3
Guenther
2010-06-02Ensure we remove SMB2 cancel requests from the active queueJeremy Allison1-0/+1
now we don't remove them in the talloc destructor. Jeremy.
2010-06-02Fix a crash bug found by Ira Cooper <samba@ira.wakeful.net>.Jeremy Allison1-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.
2010-06-02Move to using a DATA_BLOB inside of struct aio_extra, not a char *.Jeremy Allison1-16/+16
Will make using AIO in SMB2 easier. Jeremy.
2010-06-01SMB2: Fix rename on Windows 7.Ira Cooper1-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.
2010-06-01Don't use sigev_value.sival_int to just store the mid, use ↵Jeremy Allison1-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.
2010-05-31s3-smbd: remove unused sconn from token_contains_name().Günther Deschner1-1/+0
Guenther
2010-05-31s3:smbd map_username() doesn't need sconn anymoreSimo Sorce4-8/+6
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-31s3:smbd user_ok doesn't need sconn anymoreSimo Sorce1-7/+6
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-31s3:smbd user_in_list() doesn't need sconn anymoreSimo Sorce2-6/+5
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-31s3:smbd user_in_network() doesn't need sconn anymoreSimo Sorce2-7/+6
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-05-31s3:smbd make yp cache local.Simo Sorce3-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>
2010-05-31ntlmssp: Make the ntlmssp.h from source3/ a common headerAndrew Bartlett3-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>
2010-05-31s3:auth Remove AUTH_NTLMSSP_STATE typedef.Andrew Bartlett3-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>
2010-05-31s3:auth Make AUTH_NTLMSSP_STATE a private structure.Andrew Bartlett3-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>
2010-05-31s3: Fix some debug messagesVolker Lendecke1-4/+4
2010-05-31s3-build: only use ndr_security.h where needed.Günther Deschner5-0/+5
Guenther
2010-05-29s3:smbd Use the right num_sidsSimo Sorce1-1/+1
We use s_i->ptok->num_sids everywhere else in this call and then suddenly we reference s_i->num_sids
2010-05-28s3:smbd move messaging_context and memcache into globals.cAndrew Bartlett2-26/+27
This helps vfstest, which previously had duplicate copies of these functions. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28s3:smbd split reload services/printers functions from server.cAndrew Bartlett2-82/+109
This helps vfstest, as it previously had duplicate copies of these functions. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28s3:smbd split smbd/server.c into smbd/server.c and smbd/server_exit.cAndrew Bartlett2-146/+173
Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-05-28s3-auth: Added a function to get the server_info from the system user.Andreas Schneider1-0/+5
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28s3-lanman: Fix api_RNetUserGetInfo level 2 marshalling offset calculation.Günther Deschner1-16/+16
54 + 4 = 58 (and not 60). Found by torture test. Guenther
2010-05-28s3:auth Free sampass as soon as we have server_infoSimo Sorce2-0/+2
We don't keep sampass in server_info anymore So it makes no sense to keep it around. Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-28s3:auth use info3 in auth_serversupplied_infoSimo Sorce7-25/+25
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-27s3: Fix a bad memleak in the async echo responderVolker Lendecke1-1/+1
2010-05-27s3: Remove an unused variableVolker Lendecke1-1/+0
2010-05-27s3-lanman: use samr for api_RNetUserGetInfo.Günther Deschner1-27/+130
Following MS-RAP 3.2.5.13 NetUserGetInfo Command. Guenther
2010-05-27s3:rpc_server: pass down local and remote tsocket_address to np_open()Stefan Metzmacher1-1/+4
metze
2010-05-27s3:smbd: add PIPE_BUSY handling for SMBtrans calls on named pipesStefan Metzmacher1-0/+11
metze
2010-05-26s3-lanman: remove defines now provided by IDL.Günther Deschner1-10/+0
Guenther
2010-05-26s3-samr: move chgpasswd.c out of smbd and into the samr server.Günther Deschner1-1122/+0
Guenther
2010-05-26s3-smbd: remove unused change/check_lanman_password.Günther Deschner1-203/+59
Guenther
2010-05-26s3-lanman: parse encrypted and min_pwd_length in api_SetUserPassword().Günther Deschner1-3/+25
Guenther
2010-05-26s3-lanman: use samr for api_SetUserPassword().Günther Deschner1-38/+123
Guenther
2010-05-26s3-lanman: Migrated to rpc_connect_spoolss_pipe().Simo Sorce1-28/+9
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-25Standardize debug messages for read and write.Jeremy Allison2-3/+11
Jeremy.
2010-05-21If using fake oplocks, use the correct SMB2 type code for "no oplock".Jeremy Allison1-1/+1
Jeremy.
2010-05-21Don't forget brackets around bitwise tests.Jeremy Allison1-1/+1
Jeremy.
2010-05-21Make DFS work over SMB2.Jeremy Allison3-11/+43
Jeremy.
2010-05-21Make krb5 over SMB2 identical to the way we handle it in SMB1.Jeremy Allison1-2/+50
Jeremy.