ADFS Service Principal Names

cmd

ADFS prompts for credentials and successfully authenticates, but you receive HTTP 400 bad request or page not found with the address https://adfs.domina.com/adfs/ls/wia.

This is usually because someone tempered With the Service Principal Names, and that can be for multiple reasons.

The ADFS Service Account, either a regular domain user or the Group managed service account uses two Service Principal Names in ADFS 3.0/Server 2012 R2:

host/adfs.domain.com – this is used for WS federation, where the service provider doesn’t authentication on behalf of the user.
http/adfs.domain.com – this is used for SAML federation, where the user is redirected to ADFS (typical for web browsers) and for modern authentication that supports https redirect.

Bought SPN needs to be on the same service account, and these are unique values in AD, which is checked by AD, so we cannot save the setting if it exists anywhere else.

But what if it does exist anywhere else, and you don’t have a clue where? Let’s search for it:

These are built into Windows Server 2008 and newer, and will show the user having that service principal name:

 

Leave a Comment