[PATCHES BUG 13407] rpc_server: Fix NetSessEnum with stale sessions

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Apr 25 19:25:46 UTC 2018


On Wed, Apr 25, 2018 at 10:21:31AM -0700, Christof Schmitt via samba-technical wrote:
> The problem here is that sessions entries in smbXsrv_global_session do
> not expire. smbstatus -p filters out the stale sessions with a process
> check. This is missing for NetSessEnum; adding this seems to be the
> easiest fix, assuming that this does not happen often.
> 
> The other approach would be to run a clean up on the database, e.g. in
> cleanupd after a process crash, but that would require traversing the
> database and checking all processes.

What about sending the required info to cleanupd when you come across
it in gather_sessioninfo?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list