Windows: afscreds import lsa before renew expiring
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 25 Jun 2012 05:38:41 +0000 (01:38 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 4 Jul 2012 14:03:10 +0000 (07:03 -0700)
Change-Id: I53d3d000a0970089417d7855fda7a97ba4e61000
Reviewed-on: http://gerrit.openafs.org/7649
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>

src/WINNT/client_creds/window.cpp

index 965ab72..e9c505c 100644 (file)
@@ -695,8 +695,12 @@ size_t Main_FindExpiredCreds (void)
    expirationCheck = true;
    lock_ReleaseMutex(&g.expirationCheckLock);
 
-   if ( KFW_is_available() )
-       KFW_AFS_renew_expiring_tokens();
+    if ( KFW_is_available() ) {
+#ifdef USE_MS2MIT
+        KFW_import_windows_lsa();
+#endif /* USE_MS2MIT */
+        KFW_AFS_renew_expiring_tokens();
+    }
 
    lock_ObtainMutex(&g.credsLock);
    for (size_t iCreds = 0; iCreds < g.cCreds; ++iCreds)