]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-afslogon-20070402
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Apr 2007 05:33:20 +0000 (05:33 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 3 Apr 2007 05:33:20 +0000 (05:33 +0000)
restore token acquisition for non-interactive logons.

(cherry picked from commit 26b381dc17a7705af8b9d1ba1d26d1188ae649ed)

src/WINNT/afsd/afslogon.c

index e01458600eb147f80e74208332f3b0e4b93dcd15..352ca52ba5c24344e8d37be007d57e285dd45259 100644 (file)
@@ -718,9 +718,11 @@ DWORD APIENTRY NPLogonNotify(
     /* Are we interactive? */
     interactive = (wcscmp(lpStationName, L"WinSta0") == 0);
 
+#ifdef DISABLE_NON_INTERACTIVE
     /* Do not do anything if the logon session is not interactive. */
     if (!interactive)
        return 0;
+#endif
 
     (void) RegOpenKeyEx(HKEY_LOCAL_MACHINE, AFSREG_CLT_SVC_PARAM_SUBKEY,
                          0, KEY_QUERY_VALUE, &NPKey);