ADFS understanding needed

czql5v 221 Reputation points
2020-07-20T08:28:23.263+00:00

Hi All,

I have been asked quite a few questions about our infrastructure and in particular ADFS (Active Directory Federation Services). I have no idea as I don't have anything to do with Federated Services. I don't even know if it is set up in our Domain. I basically need to find out if we have Federation Services installed. Would anyone have any advice on how to check if we even have Federation Services installed on our Domain.

Any information would be greatly received.

Regards.

Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,219 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,716 Reputation points
    2020-07-20T08:47:05.903+00:00

    Hi,

    As the naming of the server could basically be anything, and still host the ADFS roles, the best would be to query and find if there are any ADFS services running on your servers.

    For example by running the following PowerShell script:

    Get-Service -ComputerName -DisplayName "*Active Directory Federation *" | select DisplayName
    

    Also have a look at the following threads with the similar query:
    https://community.spiceworks.com/topic/2200852-how-to-find-adfs-servers-in-the-environment

    https://michaeldeblok.wordpress.com/2016/07/01/how-to-find-all-the-adfs-servers-in-your-environment-and-run-diagnostics-against-them/

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,171 Reputation points Microsoft Employee
    2020-07-20T13:23:15.757+00:00

    If you know the FQDN of the service, you can follow DNS to see where it points to. If you don't know the FQDN of the service, but you know of an application using ADFS, you can try to sign-in to this application to be redirected to ADFS and get the name. The names of ADFS deployments are often similar, so you can also arbitrary try sts.<your domain>, federation.<your domain>, fs.<your domain> or adfs.<your domain>.

    If DNS leads you to a load balancer, then you can ask the team in charge of it to give you the endpoint for the actual service.

    You can also look in AD. Using the Users and Computer console, make sure you have enabled the Advanced Features in the View menu and navigate to: Program Data, Microsoft then ADFS. You need to be a member of the Domain Admins group to see those objects. If you have something there, it means you have (or at least used to have an ADFS farm).
    Then if you look at the Security tab of the object which as a GUID for name, you might see a GMSA account (in the list of accounts with permission on the object, you might have one that looks like a user account but has a name finishing with a $ sign). If you have one, you can list what computers have permission to retrieve the password of that account with the following command:

     Get-ADServiceAccount -Identity <name of the GMSA account> -Properties PrincipalsAllowedToRetrieveManagedPassword
    

    If you don't have a GMSA account in the list of that security tab, you are left with either enabling AD audit (not worth it if that's not already enabled) or scan the servers like Leon suggested.

    You could also try to scan the network for a host listening on port 443 and 49443 as ADFS does listen on those two ports for clients (and technically port 80 as well for other ADFS servers if that's a deployment with multiple servers using WID).