大网数据广告活动
账户与安全

TGS requests for krbtgt account fail

· 52CE 我爱测

Describes an issue that causes S4U Kerberos authentication to fail for a user in a trusted forest. Occurs when selective authentication is enabled on the forest trust and when an application calls LsalogonUser by using a Kerberos S4U client request.

This article provides help to fix an issue that causes S4U Kerberos authentication to fail for a user in a trusted forest.

Original KB number:   2959395

Symptoms

S4U Kerberos authentication fails for a user in a trusted forest when selective authentication is enabled on the forest trust.

Specifically, an application that calls the LsalogonUser API by using a Kerberos S4U client request to authenticate a user in a trusted forest may fail when the following conditions are true:

  • The ClientUPN value that's provided to LsalogonUser represents a user in a trusted forest where selective authentication is enabled.
  • The ClientRealm value that's provided to LsalogonUser is in the form of a NetBIOS name (flat name), not a fully qualified domain name (FQDN).

In this situation, a network trace shows that a TGS request for the krbtgt account fails with a "STATUS_AUTHENTICATION_FIREWALL_FAILED (0xC0000413)" error.

Cause

This issue occurs when, as part of processing the LsalogonUser request, the Kerberos client must obtain an authentication ticket for the user from a domain controller in the user's trusted forest.

If the ClientRealm value was passed in a flat name format, the Kerberos client does not use the referral ticket it received as part of the referral process. Therefore, the client must request a service ticket for the Krbtgt account in the user domain.

When selective authentication is enabled, the domain controller in the user's domain checks the "Allowed to Authenticate" permission on the Krbtgt account to see whether the identity of the caller that's making the ticket request has access.

Note: The caller that makes the service ticket request has the identity that the thread that calls LsalogonUser was impersonating at the time.

If the "Allowed to Authenticate" permission is not present, the domain controller in the user's domain generates a KDC_ERR_POLICY error and an extended error of STATUS_AUTHENTICATION_FIREWALL_FAILED (0xC0000413).

Resolution

To resolve this issue, use one of the following methods.

Method 1: Remove selective authentication from the trust

The domain controller in the target resources domain will ignore the "Allowed to authenticate" permission on the account. This behavior may not be desirable in a secure environment.

Method 2: Add the caller's identity to the "Allowed to Authenticate" permission on the Krbtgt account in the target user's domain

Because the Krbtgt account is a protected account, you must add the "Allowed to Authenticate" permission for the caller's identity to the AdminSdHolder account object. To do this, follow these steps:

  1. Open a command prompt on a domain controller in the target user's domain.

  2. Run the following command to add the "Allowed to Authenticate" permission to the AdminSdholder object:

    dsacls "CN=AdminSDHolder,CN=System,DC=ForestB,DC=com" /G DomainA\callers-identity:CA;"Allowed to Authenticate"  
    

    [!NOTE]

    • DC=ForestB,DC=com is the distinguished name of the user's target forest.
    • DomainA is the name of the domain where the identity of the account that's calling LsaLogonUser is located.
    • Callers-identity is the account name of the identity under which the LsaLogonUser call is being made.
  3. Run the following command to verify the "Allowed to Authenticate" permission on the target account:

    dsacls "CN=AdminSDHolder,CN=System,DC=ForestB,DC=com"
    
  4. Run dsa.msc on the user's target domain, and then locate the Krbtgt account.

  5. Select the properties of the target account, and then click the Security tab.

  6. Add the "Allowed to Authenticate" permission to the account under which the LsaLogonUser call is being made.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。