From de1d75da0de52b15228c215b2fbb832bb081e7da Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 25 Apr 2011 21:24:32 -0400 Subject: [PATCH] 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 --- src/WINNT/afsd/afslogon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5