]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-afslogon-station-name-20070416
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 17 Apr 2007 05:03:39 +0000 (05:03 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 17 Apr 2007 05:03:39 +0000 (05:03 +0000)
Use case insensitive comparisons for the station name.  Otherwise, we
will fail to notice that the logon is interactive on Vista.

src/WINNT/afsd/afslogon.c

index ea591c553d229b318e72861a24fd9d12524edd26..f13d9056a48d0e468c3a39b17c35d69db95ef68c 100644 (file)
@@ -790,7 +790,7 @@ DWORD APIENTRY NPLogonNotify(
     int sleepInterval;
 
     /* Are we interactive? */
-    interactive = (wcscmp(lpStationName, L"WinSta0") == 0);
+    interactive = (wcsicmp(lpStationName, L"WinSta0") == 0);
 
 #ifdef DISABLE_NON_INTERACTIVE
     /* Do not do anything if the logon session is not interactive. */
@@ -817,8 +817,8 @@ DWORD APIENTRY NPLogonNotify(
     /* MSV1_0_INTERACTIVE_LOGON and KERB_INTERACTIVE_LOGON are equivalent for
      * our purposes */
 
-    if ( wcscmp(lpAuthentInfoType,L"MSV1_0:Interactive") && 
-         wcscmp(lpAuthentInfoType,L"Kerberos:Interactive") )
+    if ( wcsicmp(lpAuthentInfoType,L"MSV1_0:Interactive") && 
+         wcsicmp(lpAuthentInfoType,L"Kerberos:Interactive") )
     {
         DebugEvent("Unsupported Authentication Info Type: %S",
                    lpAuthentInfoType);
@@ -1106,7 +1106,7 @@ DWORD APIENTRY NPPasswordChangeNotify(
     BOOLEAN interactive;
 
     /* Are we interactive? */
-    interactive = (wcscmp(lpStationName, L"WinSta0") == 0);
+    interactive = (wcsicmp(lpStationName, L"WinSta0") == 0);
 
     /* Do not do anything if the logon session is not interactive. */
     if (!interactive)