大网数据广告活动
域与目录服务

AD FS Troubleshooting - Proxy Trust Between WAP and AD FS Is Broken

· 52CE 我爱测

Learn how to troubleshoot various aspects of a broken trust between Web Application Proxy and Active Directory Federation Service (AD FS).

This article helps to resolve issues with proxy trust configuration with Active Directory Federation Service (AD FS). Use this article if you're seeing problems with your Web Application Proxy (WAP) trust configuration.

Check for any time skew

Check the time on all AD FS and proxy servers to make sure that there's no time skew. If there's a skew, sync all system clocks with your organization's reliable time source.

Check that required updates are installed

If AD FS is installed on Windows Server 2012 R2, make sure that the following updates are installed:

Check TLS/SSL certificate settings

On the primary AD FS server, get the thumbprint of the Transport Layer Security/Secure Sockets Layer (TLS/SSL) certificate by running the following cmdlet in PowerShell:

  1. Run Get-AdfsCertificate -CertificateType Service-Communications | select Thumbprint.
  2. Run netsh http show sslcert on the first internal AD FS server.
  3. From the preceding output:
    • Make sure that the hostname matches the AD FS federation service name.
    • Check the thumbprint against the certhash to make sure they match.
    • Ensure that the Certificate Trust List (CTL) store name is AdfsTrustedDevices.
    • You might also see an IP port binding for 0.0.0.0:443.

Repeat steps 2 and 3 for all AD FS and WAP servers.

Update TLS/SSL certificate settings if needed

Use Microsoft Entra Connect to update the TLS/SSL certificate on the affected AD FS and WAP servers. Follow the instructions at Update the TLS/SSL certificate for an Active Directory Federation Services farm.

Check trusted root certificate store

Run the following PowerShell command on all AD FS and WAP servers to make sure that there are no non-self-signed certificates in the trusted root certificate store:

  1. Run Get-ChildItem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Format-List * | Out-File "c:\computer_filtered.txt".
  2. If they exist, move them to the intermediate store.

Update TLS/SSL certificate settings

Use Microsoft Entra Connect to update the TLS/SSL certificate on the affected AD FS and WAP servers. Follow the instructions at Update the TLS/SSL certificate for an Active Directory Federation Services farm.

Check for any AD FS replication errors

Check for any AD FS replication errors:

  1. Open the AD FS Microsoft Management Console on the secondary servers and look at the last time they synced.
  2. Fix any sync issues.

Service principal name

For proper WAP and AD FS communication, ensure that the correct service principal name (SPN) is configured on the AD FS service account. Run setspn -f -q host/ <federation service name>, run setspn -f -q http/ <federation service name>, and correct any issues.

  • The host should resolve to the AD FS service account.
  • The HTTP call should resolve to one of the AD FS servers. If the SPN lookup resolves to an unrelated computer account, authentication between the servers fails.

Reset WAP trust

If all else fails, reset the WAP trust by using the Install-WebApplicationProxy PowerShell cmdlet.

Example: If the thumbprint of the TLS/SSL certificate is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and the federation service name is fs.contoso.com, run Install-WebApplicationProxy -FederationServiceName fs.contoso.com -CertificateThumbprint "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".

Related content

Source: Microsoft Learn / Windows Server documentation 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 / Windows Server documentation
适用范围
Windows Server · Source date 10/14/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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