]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 21 Jan 2006 23:40:36 +0000 (23:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 21 Jan 2006 23:40:36 +0000 (23:40 +0000)
commit33589811b6c890ad0721a501a83f2f226f1fd17f
treecf71fe45f5ad1dd5560a03955ab7f49cdae456b4
parent448ed23b832183e52db6b80e6c48747dea963317
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121

This patch:

(1) removes the rest of the dead logoff code that was originally
    stripped of any meaning by DELTA
    winnt-win2000-win98-afs-client-updates-20010623.

(2) gives new meaning to smb_TokenTransfer and smb_TokenTransferTimeout.
    these variables now control how long a smb_username_t and its
    associated cm_user_t and its cm_cellinfo_t (including tokens)
    will be preserved after a logoff.

(3) adds logic to detect logoff conditions

(4) adds cm_CheckVCs().  This function probes the SMB client with a ECHO
    response to determine if the associated SMB virtual circuit is still
    valid.   This is executed once every five minutes by smb_Daemon()
    and whenever the machine's IP addresses change.  This allows
    abandoned VCs to be detected and the associated user credentials,
    file handles, and locks to be cleaned up.  This will also prevent
    the exhaustion of the limited number of SMB sessions.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

and remember to mark the session dead so it can be re-used

====================

fix an error caused by patch conflict during pullup

(cherry picked from commit 7fde756a2c6f17e6a3b0db7659c6edcc2eaa0bd7)
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb.h
src/WINNT/afsd/smb3.c