]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: NPLogonNotify provide password in all cases
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 26 Apr 2011 01:24:32 +0000 (21:24 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 26 Apr 2011 14:23:51 +0000 (07:23 -0700)
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 <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-on: http://gerrit.openafs.org/4565

src/WINNT/afsd/afslogon.c

index 2d3d3fa3c424d6bc33b944cc24681d51c22f12e9..27d8a40b98ed668fd00f9d42bf085d92eb917add 100644 (file)
@@ -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);