From: Jeffrey Altman Date: Tue, 26 Apr 2011 01:24:32 +0000 (-0400) Subject: Windows: NPLogonNotify provide password in all cases X-Git-Tag: upstream/1.8.0_pre1^2~3821 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=de1d75da0de52b15228c215b2fbb832bb081e7da;p=packages%2Fo%2Fopenafs.git Windows: NPLogonNotify provide password in all cases When calling KFW_AFS_get_cred() from NPLogonNotify() always provide the user password. Do not count on a credential cache existing from a previous call. Change-Id: Ie94229a5b708ced2c3965f7bb333a67ee4d629d5 Reviewed-on: http://gerrit.openafs.org/4557 Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index dda6d9e11..e2c89c05d 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -1008,7 +1008,7 @@ DWORD APIENTRY NPLogonNotify( while ( *p ) { if ( cm_stricmp_utf8(p, cell) ) { SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, ""); - code2 = KFW_AFS_get_cred(principal, p, 0, 0, opt.smbName, &reason); + code2 = KFW_AFS_get_cred(principal, p, password, 0, opt.smbName, &reason); SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, NULL); DebugEvent("KFW_AFS_get_cred uname=[%s] smbname=[%s] cell=[%s] code=[%d]", principal,opt.smbName,p,code2);