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.6.0.pre5^2~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1b577bb643d8d68183bb6396ccb4b7722b8bee4d;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: I24c51395f22c07b11107c03dc749a7c2eff694f7 Reviewed-on: http://gerrit.openafs.org/4557 Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-on: http://gerrit.openafs.org/4565 --- diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 2d3d3fa3c..27d8a40b9 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -1005,7 +1005,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);