OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 19 Jan 2006 18:07:51 EST


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd

Modified Files:
	afslogon.c cm_ioctl.c cm_user.c cm_user.h smb.c smb.h smb3.c 
	smb3.h 
Log Message:
DELTA windows-integrated-logon-hack-fix-for-proper-refcounts-20060119
AUTHOR jaltman@secure-endpoints.com

The Integrated Logon hack of setting a token for a smb name different 
than the one associated with the current smb session fails when smb
virtual circuits, sessions and username objects are properly reference
counted.  When refcounts are not leaked the constructed smb_username_t
is destroyed immediately after the token is set since there are not 
references to it from a current session.

The fix is to mark the smb_username_t object with a flag indicating that
it was created by the Network Provider.  This flag prevents the destruction
when the refcount is zero so that it will be available at the time the
smb session is created (just a moment or two later.)  During the binding
of the smb_username_t to the smb_vc_t the flag is cleared allowing the
tokens to be destroyed when the smb session is closed.



--- DELTA config follows ---
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/afslogon.c 1.40 1.41
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/cm_ioctl.c 1.66 1.67
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/cm_user.c 1.7 1.8
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/cm_user.h 1.5 1.6
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/smb.c 1.101 1.102
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/smb.h 1.33 1.34
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/smb3.c 1.85 1.86
windows-integrated-logon-hack-fix-for-proper-refcounts-20060119 openafs/src/WINNT/afsd/smb3.h 1.10 1.11