InitializeSecurityContext function might not fall back to NTLM authentication in Windows 7 or in Windows Server 2008 R2 when Kerberos fails and has the STATUS_NO_LOGON_SERVERS status

Applies To
Windows 7 Professional Windows 7 Enterprise Windows 7 Ultimate Windows Server 2008 R2 Standard Windows Server 2008 R2 Enterprise Windows Server 2008 R2 Datacenter Windows Server 2008 R2 Foundation Windows Server 2008 R2 for Itanium-Based Systems

Symptoms

Consider the following scenario:

  • You have a computer that is running Windows 7 or Windows Server 2008 R2.
  • An application or service calls the LogonUser function, passes credentials, and impersonates the user context.
  • The application or service calls the AcquireCredentialshandle function, passes a SEC_WINNT_AUTH_IDENTITY structure. The credential fields of the structure has a NULL value.
  • The application or service calls the InitializeSecurityContext function to create a security context with a peer by using the credential handle and by specifying the Negotiate security package.
  • Kerberos authentication fails in the InitializeSecurityContext function and has the STATUS_NO_LOGON_SERVERS status.

In this scenario, the InitializeSecurityContext function does not fall back to NTLM authentication and returns the STATUS_DOWNGRADE_DETECTED status.

Cause

This issue occurs because the AcquireCredentialsHandle function does not mark the credentials as being suitable for fallback operation if the credential fields of a SEC_WINNT_AUTH_IDENTITY structure has a NULL value. Kerberos fails and has the STATUS_NO_LOGON_SERVERS status. Therefore, the InitializeSecurityContext function does not allow a fallback operation to NTLM authentication.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

http:⁠//support.microsoft.com/contactus/?ws=support Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:

  • Windows 7
  • Windows 7 Service Pack 1 (SP1)
  • Windows Server 2008 R2
  • Windows Server 2008 R2 Service Pack 1 (SP1)

For more information about how to obtain a Windows 7 or a Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2

Registry information

To use the hotfix in this package, you do not have to make any changes to the registry.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.

Windows 7 and Windows Server 2008 R2 file information notes

Important Windows 7 hotfixes and Windows Server 2008 R2 hotfixes are included in the same packages. However, hotfixes on the Hotfix Request page are listed under both operating systems. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows 7/Windows Server 2008 R2" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.

  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.

    Version Product SR_Level Service branch
    6.1.760
    0.
    16xxx
    Windows 7 and Windows Server 2008 R2 RTM GDR
    6.1.760
    0.
    20xxx
    Windows 7 and Windows Server 2008 R2 RTM LDR
    6.1.760
    1.
    17xxx
    Windows 7 and Windows Server 2008 R2 SP1 GDR
    6.1.760
    1.
    21xxx
    Windows 7 and Windows Server 2008 R2 SP1 LDR
  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 R2 and for Windows 7" section. MUM and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.

For all supported x86-based versions of Windows 7

File name File version File size Date Time Platform
Cng.sys 6.1.7600.16385 369,568 14-Jul-2009 01:17 x86
Ksecdd.sys 6.1.7600.20926 67,456 17-Mar-2011 06:57 x86
Ksecpkg.sys 6.1.7600.20926 133,504 17-Mar-2011 06:57 x86
Lsasrv.dll 6.1.7600.20926 1,037,824 17-Mar-2011 06:50 x86
Lsasrv.mof Not applicable 13,780 10-Jun-2009 21:33 Not applicable
Lsass.exe 6.1.7600.16385 22,528 14-Jul-2009 01:14 x86
Secur32.dll 6.1.7600.20926 22,016 17-Mar-2011 06:51 x86
Sspicli.dll 6.1.7600.20926 100,352 17-Mar-2011 06:51 x86
Sspisrv.dll 6.1.7600.20926 15,360 17-Mar-2011 06:51 x86
Cng.sys 6.1.7600.16385 369,568 14-Jul-2009 01:17 x86
Ksecdd.sys 6.1.7601.17514 67,456 20-Nov-2010 12:30 x86
Ksecpkg.sys 6.1.7601.21685 133,504 17-Mar-2011 06:57 x86
Lsasrv.dll 6.1.7601.21685 1,038,848 17-Mar-2011 06:51 x86
Lsasrv.mof Not applicable 13,780 10-Jun-2009 21:33 Not applicable
Lsass.exe 6.1.7601.21685 22,528 17-Mar-2011 06:49 x86
Secur32.dll 6.1.7601.17514 22,016 20-Nov-2010 12:21 x86
Sspicli.dll 6.1.7601.17514 100,352 20-Nov-2010 12:21 x86
Sspisrv.dll 6.1.7601.17514 15,872 20-Nov-2010 12:21 x86

For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2

File name File version File size Date Time Platform
Cng.sys 6.1.7600.16385 460,504 14-Jul-2009 01:43 x64
Ksecdd.sys 6.1.7600.20926 95,616 17-Mar-2011 05:19 x64
Ksecpkg.sys 6.1.7600.20926 152,960 17-Mar-2011 05:19 x64
Lsasrv.dll 6.1.7600.20926 1,446,400 17-Mar-2011 05:14 x64
Lsasrv.mof Not applicable 13,780 10-Jun-2009 20:52 Not applicable
Lsass.exe 6.1.7600.16385 31,232 14-Jul-2009 01:39 x64
Secur32.dll 6.1.7600.20926 28,160 17-Mar-2011 05:17 x64
Sspicli.dll 6.1.7600.20926 136,192 17-Mar-2011 05:17 x64
Sspisrv.dll 6.1.7600.20926 28,672 17-Mar-2011 05:17 x64
Cng.sys 6.1.7601.17514 459,248 20-Nov-2010 13:28 x64
Ksecdd.sys 6.1.7601.17514 95,616 20-Nov-2010 13:33 x64
Ksecpkg.sys 6.1.7601.21685 152,960 17-Mar-2011 05:06 x64
Lsasrv.dll 6.1.7601.21685 1,446,912 17-Mar-2011 05:03 x64
Lsasrv.mof Not applicable 13,780 10-Jun-2009 20:52 Not applicable
Lsass.exe 6.1.7601.21685 31,232 17-Mar-2011 05:00 x64
Secur32.dll 6.1.7601.17514 28,160 20-Nov-2010 13:27 x64
Sspicli.dll 6.1.7601.17514 136,192 20-Nov-2010 13:27 x64
Sspisrv.dll 6.1.7601.17514 29,184 20-Nov-2010 13:27 x64
Lsasrv.mof Not applicable 13,780 22-Jul-2009 23:19 Not applicable
Secur32.dll 6.1.7600.20926 22,016 17-Mar-2011 06:51 x86
Sspicli.dll 6.1.7600.20926 96,768 17-Mar-2011 06:48 x86
Lsasrv.mof Not applicable 13,780 12-Nov-2010 23:53 Not applicable
Secur32.dll 6.1.7601.21685 22,016 17-Mar-2011 06:51 x86
Sspicli.dll 6.1.7601.21685 96,768 17-Mar-2011 06:48 x86

For all supported IA-64-based versions of Windows Server 2008 R2

File name File version File size Date Time Platform
Cng.sys 6.1.7600.16385 787,736 14-Jul-2009 01:52 IA-64
Ksecdd.sys 6.1.7600.20926 179,584 17-Mar-2011 04:15 IA-64
Ksecpkg.sys 6.1.7600.20926 307,072 17-Mar-2011 04:15 IA-64
Lsasrv.dll 6.1.7600.20926 2,654,720 17-Mar-2011 04:09 IA-64
Lsasrv.mof Not applicable 13,780 10-Jun-2009 20:57 Not applicable
Lsass.exe 6.1.7600.16385 56,320 14-Jul-2009 01:44 IA-64
Secur32.dll 6.1.7600.20926 48,640 17-Mar-2011 04:11 IA-64
Sspicli.dll 6.1.7600.20926 275,456 17-Mar-2011 04:12 IA-64
Sspisrv.dll 6.1.7600.20926 45,568 17-Mar-2011 04:12 IA-64
Cng.sys 6.1.7600.16385 787,736 14-Jul-2009 01:52 IA-64
Ksecdd.sys 6.1.7601.17514 179,584 20-Nov-2010 10:33 IA-64
Ksecpkg.sys 6.1.7601.21685 307,072 17-Mar-2011 04:08 IA-64
Lsasrv.dll 6.1.7601.21685 2,655,744 17-Mar-2011 04:02 IA-64
Lsasrv.mof Not applicable 13,780 10-Jun-2009 20:57 Not applicable
Lsass.exe 6.1.7600.16385 56,320 14-Jul-2009 01:44 IA-64
Secur32.dll 6.1.7601.17514 48,640 20-Nov-2010 10:28 IA-64
Sspicli.dll 6.1.7601.17514 275,456 20-Nov-2010 10:28 IA-64
Sspisrv.dll 6.1.7601.17514 46,080 20-Nov-2010 10:28 IA-64
Lsasrv.mof Not applicable 13,780 22-Jul-2009 23:19 Not applicable
Secur32.dll 6.1.7600.20926 22,016 17-Mar-2011 06:51 x86
Sspicli.dll 6.1.7600.20926 96,768 17-Mar-2011 06:48 x86
Lsasrv.mof Not applicable 13,780 12-Nov-2010 23:53 Not applicable
Secur32.dll 6.1.7601.21685 22,016 17-Mar-2011 06:51 x86
Sspicli.dll 6.1.7601.21685 96,768 17-Mar-2011 06:48 x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

For more information about the InitializeSecurityContext function, visit the following MSDN website:

General information about the InitializeSecurityContext function For more information about the AcquireCredentialsHandle function, visit the following MSDN website:

General information about the AcquireCredentialsHandle function For more information about the LogonUser function, visit the following MSDN website:

General information about the LogonUser function
      

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2

Additional files for all supported x86-based versions of Windows 7

File name Update.mum
File version Not applicable
File size 2,773
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name X86_5676ba3d4d37c9101f9a0b3dd65ac1f4_31bf3856ad364e35_6.1.7600.20926_none_7415dd3c60acef57.manifest
File version Not applicable
File size 691
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name X86_a9ab587f9f300cffcfff342e55fae6cd_31bf3856ad364e35_6.1.7601.21685_none_d7f6a288493ac880.manifest
File version Not applicable
File size 691
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name X86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_a6ec6700d70ad0e5.manifest
File version Not applicable
File size 103,660
Date (UTC) 17-Mar-2011
Time (UTC) 20:08
Platform Not applicable
File name X86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_a890e24ed462cdf9.manifest
File version Not applicable
File size 103,660
Date (UTC) 17-Mar-2011
Time (UTC) 20:08
Platform Not applicable

Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2

File name Amd64_28c44e2c0bb0a285328fef4ff2fea2d7_31bf3856ad364e35_6.1.7600.20926_none_85912d689394adf0.manifest
File version Not applicable
File size 695
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Amd64_299914ea63b5fc4fd31dd26463f59f06_31bf3856ad364e35_6.1.7601.21685_none_73d25e1f96021374.manifest
File version Not applicable
File size 695
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Amd64_561edc06d3669bc7254c2a270730f77e_31bf3856ad364e35_6.1.7601.21685_none_cebec1086ea706af.manifest
File version Not applicable
File size 1,032
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Amd64_8fb5a66833bac4e2df6bbaabd71984e8_31bf3856ad364e35_6.1.7600.20926_none_f758b54e39e6f653.manifest
File version Not applicable
File size 1,032
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Amd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_030b02848f68421b.manifest
File version Not applicable
File size 103,664
Date (UTC) 17-Mar-2011
Time (UTC) 20:11
Platform Not applicable
File name Amd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_04af7dd28cc03f2f.manifest
File version Not applicable
File size 103,664
Date (UTC) 17-Mar-2011
Time (UTC) 20:11
Platform Not applicable
File name Update.mum
File version Not applicable
File size 3,215
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Wow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_0d5facd6c3c90416.manifest
File version Not applicable
File size 86,382
Date (UTC) 17-Mar-2011
Time (UTC) 07:11
Platform Not applicable
File name Wow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_0f042824c121012a.manifest
File version Not applicable
File size 86,382
Date (UTC) 17-Mar-2011
Time (UTC) 07:11
Platform Not applicable

Additional files for all supported IA-64-based versions of Windows Server 2008 R2

File name Ia64_a336c82657b2aa0749c17b8862256557_31bf3856ad364e35_6.1.7601.21685_none_c64be00ffb5bbd9d.manifest
File version Not applicable
File size 1,030
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Ia64_d0946eee0be3d2c3668a96b094f00fcc_31bf3856ad364e35_6.1.7600.20926_none_8c7d54fb378b3887.manifest
File version Not applicable
File size 1,030
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Ia64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_a6ee0af6d708d9e1.manifest
File version Not applicable
File size 103,662
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Ia64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_a8928644d460d6f5.manifest
File version Not applicable
File size 103,662
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Update.mum
File version Not applicable
File size 2,168
Date (UTC) 17-Mar-2011
Time (UTC) 20:05
Platform Not applicable
File name Wow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_0d5facd6c3c90416.manifest
File version Not applicable
File size 86,382
Date (UTC) 17-Mar-2011
Time (UTC) 07:11
Platform Not applicable
File name Wow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_0f042824c121012a.manifest
File version Not applicable
File size 86,382
Date (UTC) 17-Mar-2011
Time (UTC) 07:11
Platform Not applicable