mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
DEVEL15-windows-afslogon-station-name-20070416
Use case insensitive comparisons for the station name. Otherwise, we
will fail to notice that the logon is interactive on Vista.
(cherry picked from commit a82252fcc8
)
This commit is contained in:
parent
f97420e870
commit
ee08ebed1a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user