summaryrefslogtreecommitdiffstats
path: root/source3/smbd/conn_idle.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #9733 - smbcontrol close-share is not working.Jeremy Allison2013-03-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of forcibly disconnecting a client from a share, smbd must atomically call reload_services() to ensure that the entry in the ServicePtrs[] array corresponding to that share is removed if the share was removed from the smb.conf or registry entries. Otherwise the ServicePtrs[] array entry for the share remains active and the client races to auto-reconnect to the share before a second message to reload the smb.conf file can be sent. This has to be done as part of the close-share message processing, as removing the share from the smb.conf file first, then telling the smbd to reload followed by the forcible disconnect message doesn't work as in this sequence of events when the reload message is received the client is still connected to the share, so the ServicePtrs[] entry is still left active. The forcible-disconnect + service reload has to be done together as an atomic operation in order for this to work. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Fri Mar 22 20:10:11 CET 2013 on sn-devel-104
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-1/+2
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Fix Coverity ID 709218 Uninitialized pointer readVolker Lendecke2012-07-031-0/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbd: remove now unused conn_close_all()Michael Adam2012-06-251-15/+0
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-251-33/+39
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: make use of smbXsrv_tcon and smbXsrv_session for smb2Stefan Metzmacher2012-06-251-27/+14
| | | | | | | | | The removes the protocol specific smbd_smb2_session and smbd_smb2_tcon. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: use UID_FIELD_INVALID (0) instead of (uint16)-1 when calling ↵Stefan Metzmacher2012-06-061-1/+1
| | | | | | | | close_cnum() The only thing that's important is that the value is invalid. metze
* s3:smbd: make conn_close_all() a void functionStefan Metzmacher2012-06-031-6/+1
| | | | metze
* s3:smbd: call file_close_user() before removing tree connects in ↵Stefan Metzmacher2012-03-151-0/+4
| | | | | | | | | | | | conn_close_all() This will help later if we have to handle a SMB2TreeDisconnect different compared to a SMB2SessionLogoff and a TCPDisconnect. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Mar 15 21:56:09 CET 2012 on sn-devel-104
* s3:smbd: keep 'num_connections' and 'connections' directly under ↵Stefan Metzmacher2012-03-061-62/+17
| | | | | | | | | smbd_server_connection The plan is to have connection_struct as some kind of low level abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules. metze
* s3-rpc_server: Move pipe/handles functionsSimo Sorce2011-07-211-1/+1
| | | | | | | | | | | | Put InternalPipes related functions in rpc_handles.c and out of rpc_ncacn_np.c rpc_handles.c is the only file that really uses them after all and ncacn_np.c is the wrong place for that stuff. While ther remove unnecessary wrapper functions now that the InternalPipes static variable is directly accessible. Also move all pipes_struct related header stuff in its own rpc_pipes.h header. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-smbd Split conn.c into 3 filesAndrew Bartlett2011-05-311-0/+207
The idea with this split is to make it easier to handle dependencies, avoiding having the loadparm code depend on the global server variables, without resorting to dummy functions and linker tricks. conn_clear_vuid_cache() is brought in from uid.c to make it static Andrew Bartlett