r11909: Implement 'reset on zero vc'. This kills other connections when a session
authorVolker Lendecke <vlendec@samba.org>
Fri, 25 Nov 2005 12:31:40 +0000 (12:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:34 +0000 (11:05 -0500)
commit1bfb5b734b0d5e1bc093bb43513729ed458fe372
treee6315c8309c3ee1330813a9a1530050df1825b9a
parented6936598ef73f1fc46801fd5dc7765d65032fa1
r11909: Implement 'reset on zero vc'. This kills other connections when a session
setup comes in with the vc (virtual connection) field set to zero. This is
done by Windows, probably you can tweak that by some registry key.

This boolean option controls whether an incoming session setup
should kill other connections coming from the same IP. This matches
        the default Windows 2003 behaviour.

Setting this parameter to yes becomes necessary when you have a flaky
network and windows decides to reconnect while the old connection
still has files with share modes open. These files become inaccessible
over the new connection.

The client sends a zero VC on the new connection, and Windows 2003
kills all other connections coming from the same IP. This way the
locked files are accessible again.

Please be aware that enabling this option will kill connections behind
a masquerading router.

Volker
(This used to be commit 5629ca16235f0aa21fea3afd9e414309e4e1374e)
source3/param/loadparm.c
source3/smbd/session.c
source3/smbd/sesssetup.c