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

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Thu, 22 Jul 2004 18:15:47 EDT


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

Modified Files:
	NTMakefile afslogon.c afslogon.h logon_ad.cpp 
Log Message:
DELTA afslogon-20040722
AUTHOR jaltman@mit.edu

the procedure used to obtain the profile directory failed in Domains
which were not Forests.  If ADS_NAME_INITTYPE_GC fails, we must try
ADS_NAME_INITTYPE_DOMAIN which requires the Domain.  Added a Domain
parameter to QueryAdHomePathFromSid.  This was easy to obtain in 
the NPLogonNotify since the logon domain is provided as a parameter.
Unfortunately, the domain provided to the winlogon event notification
routine is the user authentication domain, not the logon domain for 
the local machine.  Needed to create a  GetLocalShortDomain function
which uses the IADsADSystemInfo COM interface to obtain the local
short domain.  With this in place, we can now properly detect the 
profile directory in all cases.

Document MaxLogSize in registry.txt
 



--- DELTA config follows ---
afslogon-20040722 openafs/src/WINNT/afsd/NTMakefile 1.25 1.26
afslogon-20040722 openafs/src/WINNT/afsd/afslogon.c 1.21 1.22
afslogon-20040722 openafs/src/WINNT/afsd/afslogon.h 1.3 1.4
afslogon-20040722 openafs/src/WINNT/afsd/logon_ad.cpp 1.3 1.4