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

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: 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.
    VersionProductSR_LevelService branch
    6.1.760
    0.
    16xxx
    Windows 7 and Windows Server 2008 R2RTMGDR
    6.1.760
    0.
    20xxx
    Windows 7 and Windows Server 2008 R2RTMLDR
    6.1.760
    1.
    17xxx
    Windows 7 and Windows Server 2008 R2SP1GDR
    6.1.760
    1.
    21xxx
    Windows 7 and Windows Server 2008 R2SP1LDR
  • 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 nameFile versionFile sizeDateTimePlatform
Cng.sys6.1.7600.16385369,56814-Jul-200901:17x86
Ksecdd.sys6.1.7600.2092667,45617-Mar-201106:57x86
Ksecpkg.sys6.1.7600.20926133,50417-Mar-201106:57x86
Lsasrv.dll6.1.7600.209261,037,82417-Mar-201106:50x86
Lsasrv.mofNot applicable13,78010-Jun-200921:33Not applicable
Lsass.exe6.1.7600.1638522,52814-Jul-200901:14x86
Secur32.dll6.1.7600.2092622,01617-Mar-201106:51x86
Sspicli.dll6.1.7600.20926100,35217-Mar-201106:51x86
Sspisrv.dll6.1.7600.2092615,36017-Mar-201106:51x86
Cng.sys6.1.7600.16385369,56814-Jul-200901:17x86
Ksecdd.sys6.1.7601.1751467,45620-Nov-201012:30x86
Ksecpkg.sys6.1.7601.21685133,50417-Mar-201106:57x86
Lsasrv.dll6.1.7601.216851,038,84817-Mar-201106:51x86
Lsasrv.mofNot applicable13,78010-Jun-200921:33Not applicable
Lsass.exe6.1.7601.2168522,52817-Mar-201106:49x86
Secur32.dll6.1.7601.1751422,01620-Nov-201012:21x86
Sspicli.dll6.1.7601.17514100,35220-Nov-201012:21x86
Sspisrv.dll6.1.7601.1751415,87220-Nov-201012:21x86
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Cng.sys6.1.7600.16385460,50414-Jul-200901:43x64
Ksecdd.sys6.1.7600.2092695,61617-Mar-201105:19x64
Ksecpkg.sys6.1.7600.20926152,96017-Mar-201105:19x64
Lsasrv.dll6.1.7600.209261,446,40017-Mar-201105:14x64
Lsasrv.mofNot applicable13,78010-Jun-200920:52Not applicable
Lsass.exe6.1.7600.1638531,23214-Jul-200901:39x64
Secur32.dll6.1.7600.2092628,16017-Mar-201105:17x64
Sspicli.dll6.1.7600.20926136,19217-Mar-201105:17x64
Sspisrv.dll6.1.7600.2092628,67217-Mar-201105:17x64
Cng.sys6.1.7601.17514459,24820-Nov-201013:28x64
Ksecdd.sys6.1.7601.1751495,61620-Nov-201013:33x64
Ksecpkg.sys6.1.7601.21685152,96017-Mar-201105:06x64
Lsasrv.dll6.1.7601.216851,446,91217-Mar-201105:03x64
Lsasrv.mofNot applicable13,78010-Jun-200920:52Not applicable
Lsass.exe6.1.7601.2168531,23217-Mar-201105:00x64
Secur32.dll6.1.7601.1751428,16020-Nov-201013:27x64
Sspicli.dll6.1.7601.17514136,19220-Nov-201013:27x64
Sspisrv.dll6.1.7601.1751429,18420-Nov-201013:27x64
Lsasrv.mofNot applicable13,78022-Jul-200923:19Not applicable
Secur32.dll6.1.7600.2092622,01617-Mar-201106:51x86
Sspicli.dll6.1.7600.2092696,76817-Mar-201106:48x86
Lsasrv.mofNot applicable13,78012-Nov-201023:53Not applicable
Secur32.dll6.1.7601.2168522,01617-Mar-201106:51x86
Sspicli.dll6.1.7601.2168596,76817-Mar-201106:48x86
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Cng.sys6.1.7600.16385787,73614-Jul-200901:52IA-64
Ksecdd.sys6.1.7600.20926179,58417-Mar-201104:15IA-64
Ksecpkg.sys6.1.7600.20926307,07217-Mar-201104:15IA-64
Lsasrv.dll6.1.7600.209262,654,72017-Mar-201104:09IA-64
Lsasrv.mofNot applicable13,78010-Jun-200920:57Not applicable
Lsass.exe6.1.7600.1638556,32014-Jul-200901:44IA-64
Secur32.dll6.1.7600.2092648,64017-Mar-201104:11IA-64
Sspicli.dll6.1.7600.20926275,45617-Mar-201104:12IA-64
Sspisrv.dll6.1.7600.2092645,56817-Mar-201104:12IA-64
Cng.sys6.1.7600.16385787,73614-Jul-200901:52IA-64
Ksecdd.sys6.1.7601.17514179,58420-Nov-201010:33IA-64
Ksecpkg.sys6.1.7601.21685307,07217-Mar-201104:08IA-64
Lsasrv.dll6.1.7601.216852,655,74417-Mar-201104:02IA-64
Lsasrv.mofNot applicable13,78010-Jun-200920:57Not applicable
Lsass.exe6.1.7600.1638556,32014-Jul-200901:44IA-64
Secur32.dll6.1.7601.1751448,64020-Nov-201010:28IA-64
Sspicli.dll6.1.7601.17514275,45620-Nov-201010:28IA-64
Sspisrv.dll6.1.7601.1751446,08020-Nov-201010:28IA-64
Lsasrv.mofNot applicable13,78022-Jul-200923:19Not applicable
Secur32.dll6.1.7600.2092622,01617-Mar-201106:51x86
Sspicli.dll6.1.7600.2092696,76817-Mar-201106:48x86
Lsasrv.mofNot applicable13,78012-Nov-201023:53Not applicable
Secur32.dll6.1.7601.2168522,01617-Mar-201106:51x86
Sspicli.dll6.1.7601.2168596,76817-Mar-201106:48x86

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:
For more information about the AcquireCredentialsHandle function, visit the following MSDN website:
For more information about the LogonUser function, visit the following MSDN website:

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 nameUpdate.mum
File versionNot applicable
File size2,773
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameX86_5676ba3d4d37c9101f9a0b3dd65ac1f4_31bf3856ad364e35_6.1.7600.20926_none_7415dd3c60acef57.manifest
File versionNot applicable
File size691
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameX86_a9ab587f9f300cffcfff342e55fae6cd_31bf3856ad364e35_6.1.7601.21685_none_d7f6a288493ac880.manifest
File versionNot applicable
File size691
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameX86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_a6ec6700d70ad0e5.manifest
File versionNot applicable
File size103,660
Date (UTC)17-Mar-2011
Time (UTC)20:08
PlatformNot applicable
File nameX86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_a890e24ed462cdf9.manifest
File versionNot applicable
File size103,660
Date (UTC)17-Mar-2011
Time (UTC)20:08
PlatformNot applicable
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_28c44e2c0bb0a285328fef4ff2fea2d7_31bf3856ad364e35_6.1.7600.20926_none_85912d689394adf0.manifest
File versionNot applicable
File size695
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameAmd64_299914ea63b5fc4fd31dd26463f59f06_31bf3856ad364e35_6.1.7601.21685_none_73d25e1f96021374.manifest
File versionNot applicable
File size695
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameAmd64_561edc06d3669bc7254c2a270730f77e_31bf3856ad364e35_6.1.7601.21685_none_cebec1086ea706af.manifest
File versionNot applicable
File size1,032
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameAmd64_8fb5a66833bac4e2df6bbaabd71984e8_31bf3856ad364e35_6.1.7600.20926_none_f758b54e39e6f653.manifest
File versionNot applicable
File size1,032
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameAmd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_030b02848f68421b.manifest
File versionNot applicable
File size103,664
Date (UTC)17-Mar-2011
Time (UTC)20:11
PlatformNot applicable
File nameAmd64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_04af7dd28cc03f2f.manifest
File versionNot applicable
File size103,664
Date (UTC)17-Mar-2011
Time (UTC)20:11
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size3,215
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameWow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_0d5facd6c3c90416.manifest
File versionNot applicable
File size86,382
Date (UTC)17-Mar-2011
Time (UTC)07:11
PlatformNot applicable
File nameWow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_0f042824c121012a.manifest
File versionNot applicable
File size86,382
Date (UTC)17-Mar-2011
Time (UTC)07:11
PlatformNot applicable
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File nameIa64_a336c82657b2aa0749c17b8862256557_31bf3856ad364e35_6.1.7601.21685_none_c64be00ffb5bbd9d.manifest
File versionNot applicable
File size1,030
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameIa64_d0946eee0be3d2c3668a96b094f00fcc_31bf3856ad364e35_6.1.7600.20926_none_8c7d54fb378b3887.manifest
File versionNot applicable
File size1,030
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameIa64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_a6ee0af6d708d9e1.manifest
File versionNot applicable
File size103,662
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameIa64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_a8928644d460d6f5.manifest
File versionNot applicable
File size103,662
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameUpdate.mum
File versionNot applicable
File size2,168
Date (UTC)17-Mar-2011
Time (UTC)20:05
PlatformNot applicable
File nameWow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7600.20926_none_0d5facd6c3c90416.manifest
File versionNot applicable
File size86,382
Date (UTC)17-Mar-2011
Time (UTC)07:11
PlatformNot applicable
File nameWow64_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.21685_none_0f042824c121012a.manifest
File versionNot applicable
File size86,382
Date (UTC)17-Mar-2011
Time (UTC)07:11
PlatformNot applicable
Properties

Article ID: 2522623 - Last Review: Dec 27, 2012 - Revision: 1

Feedback