r/adfs • • Apr 24 '20

AD FS 2019 You may know of Azure AD Primary Refresh Tokens and how they provide Seamless SSO to resources integrated with Azure AD. But did you know you can also replicate this for your AD FS environment? Check out my latest blog post to learn more!

Thumbnail
identitypro.blog
7 Upvotes

r/adfs • • Aug 05 '19

Is there a way in ADFS to add a domain to the sam account name and send as a claim?

7 Upvotes

Is there a way in ADFS to add a domain to the sam account name and send as a claim? For reasons unknown to me our business setup a sso solution to an external vendor using sam account name and then our domain. They should have used email address. Now to get rid of that sso solution and to use ADFS, I need to figure out how to take the sam account name and add our domain to it and send it as a claim.

Example:

Sam Account name: stest

The claim I need to send: [email protected]


r/adfs • • Aug 20 '22

Cannot set-adfssslCertificate or manage secondary node from Primary in Farm.

6 Upvotes

I am trying to update the SSL cert for the farm but for some reason, the Primary cannot do anything on the Secondary. WinRM should be fine since the ports are open and it seems to be configured correctly.

Here is the error from set-ADFSSslCertificate command.

Set-AdfsSslCertificate : PS0317: One or more of AD FS servers returned errors during execution of command 'Set-AdfsSslCertificate'. Error information: PS0316: AD FS Server: 'secondary.domain.com', Error: 'Connecting to remote server secondary.domain.com failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090322 occurred while using Kerberos authentication: An unknown security error occurred.

And the corresponding Event Log (Event ID 4)

The Kerberos client received a KRB_AP_ERR_MODIFIED error from the server secondary$. The target name used was HTTP/secondary.domain.com. This indicates that the target server failed to decrypt the ticket provided by the client. This can occur when the target server principal name (SPN) is registered on an account other than the account the target service is using. Ensure that the target SPN is only registered on the account used by the server. This error can also happen if the target service account password is different than what is configured on the Kerberos Key Distribution Center for that target service. Ensure that the service on the server and the KDC are both configured to use the same password. If the server name is not fully qualified, and the target domain (domain.com) is different from the client domain (domain.com), check if there are identically named server accounts in these two domains, or use the fully-qualified name to identify the server.

  • setspn -x doesn't show any duplicates.

  • We are using a standard service account. (has Read PK on the Cert on both primary and Secondary)

  • ADFS servers are 2019 and FBL is 4.

  • get-adfsfarmhealth shows secondary as unreachable.

  • WinRM listening on 5986 and test-netconnection works for that port on each server.

  • Certificate I generated is good because another farm we have (2016 servers, FBL 3, GMSA) was set to a new cert just fine and this cert is identical (different Domainname)

About to pull my hair out with this one.

EDIT:

I had to remove the SPN from the service account (HTTP/secondary.domain.com) and add it to the computer account as an SPN. Then I was able to run the set-adfssslcertificate and everything is working now after I set the SPN back to the adfs service account. I need a beer


r/adfs • • Aug 04 '22

AD FS 2016 ADFS Certificate Renewal Issue (xpost /r/sysadmin)

6 Upvotes

I posted here but am hoping to get some direction. https://www.reddit.com/r/sysadmin/comments/weacqh/adfs_certificate_renewal_issue/

I can find no mention of this phrase anywhere on the Internet. "AD FS could not detect other machines joined to this farm."

I am going through the process of renewing my 2016 ADFS certificate. I did this last year following steps from this link which worked before https://www.franken.pro/blog/replace-adfs-certificate However when I go to run the set-adfssslcertifcate I get the message below. Any thoughts on the cause and/or resolution?

PS C:\Windows\system32> Set-AdfsSslCertificate -thumbprint 213ae1d16d84a9aafc285a5fcfdf61555cd1b8cd
Set-AdfsSslCertificate : AD FS could not detect other machines joined to this farm. Use 'Member' parameter to specify
the machines joined to this farm. Refer to 'http://go.microsoft.com/fwlink/?LinkId=797872' for more information.
At line:1 char:1
+ Set-AdfsSslCertificate -thumbprint 213ae1d16d84a9aafc285a5fcfdf61555cd1b8cd ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-AdfsSslCertificate], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.IdentityServer.Management.Commands.SetSslCert
   ificateCommand

running Test-AdfsFarmBehaviorLevelRaise throws the same error

*Update I had to run Set-AdfsSslCertificate -member server_name -thumbprint 213ae1d16d84a9aafc285a5fcfdf61555cd1b8cd and it worked


r/adfs • • Jan 31 '21

How are your Helpdesks checking user extranet soft-lockout status?

6 Upvotes

We've enabled the Extranet smart lockout policy on our ADFS farm. As recommended, the threshold is lower than for AD, so the extranet soft-lock in ADFS will happen before AD.

I can report on lock status with "Get-ADFSAccountActivity [email protected]" but our helpdesk staff don't have access to the servers and there's no reflection of the extranet lock in AD or anywhere else. How are you allowing lower-privileged IT staff to check?


r/adfs • • Jan 09 '21

AD FS 2012 R2 Securing ADFS over the Internet?

6 Upvotes

Hi, can I check what would be the best practices of securing ADFS when exposing it out to the Internet?

We are looking at connecting with a SaaS provider and understand we will need to purchase a digital certificate and then have the federationmetadata setup and downloaded for connectivity purposes with the SaaS provider, but this would probably mean that we are leaving the ADFS exposed.

Are there any best practices as what most companies are doing to limit the attack surface? Maybe through outbound firewall rules or ?

Thanks.


r/adfs • • Oct 10 '24

AD FS portal deprecating

5 Upvotes

Have noticed a banner on the portal that its going to be deprecated in few days. But I know it hosts very valuable Claims X-Ray tool used by many admins to test their claims.

https://adfshelp.microsoft.com/ClaimsXray/TokenRequest

If you use it, provide Feedback (there is section on the portal) to make Microsoft realize how many people depend on it.

https://adfshelp.microsoft.com/Feedback/ProvideFeedback


r/adfs • • Oct 01 '24

Best Practise approach for cert renewal automatic/manual?

5 Upvotes

Hi there!

We have set up our first Relying Party Trust Connection to our SP and it works perfectly. But of course certificates have to replaced after some time.

Currently there are 4 certificates in use:

  • Token-Signing Certificate (ADFS)

  • Token-Decryption Certificate (ADFS)

  • Service Communication Certificate (ADFS)

  • Token-Signing-Certificate (Relying Party)

As I've read the Service Communication Certificate is being handled as any other SSL certificate, no questions about that. The Token-Signing Certificate (ADFS) and Token-Decryption Certificate can be renewed and set primary with Auto Certificate Rollover Feature, which is active now. The Token-Signing-Certificate from the Relying Party have being manually imported.

At the current stage we set everything up manually and there is no XML-Metadata monitoring on both sides. I thought about implementing it, but I'm not sure if it makes sense if we just have 1-5 Relying Parties. So there are two options on the table, automated or manually and I have some questions about both.

Automatic renewal and monitoring

Both sides need to monitor the opposite Metadata for changes/updates.

Question 1: How often are the changes/updates checked or is it a live check (change happened > immediate update)?

Question 2: If the Auto Certificate Rollover Feature is activated the Token-Certificates on the ADFS side are created 20 days prior expiration and set as primary 5 days after. If the Relying Party just checks for updates of the Metadata only every evening, isn't there a gap between the time when the new certs are set as primary and the update check if the certs are set active at midnight? Or does the Metadata contain information when the new certs become primary?

What would be the best configuration here on both sides in order to make things work

Question 3: How can I check at which daytime are the certs being set as primary with Auto Certificate Rollover Feature (answer need only if the Metadata does not inherit the cert transition time) ?

Question 4: When the Relying Party or ADFS receives the new Metadata information (including certificates), do we/they have to configure each systems to change certificates or does this happen automatically

Manual replacement

Question 1: Whats the/your best workflow?

Question 2: Should Auto Certificate Rollover Feature be used or is it better to manually renew the certs with Powershell?

Cert Duration

Best practise 1,2,5 or X years?

All after all I'm not sure whats the better option here. Would you use Automatic renewal and monitoring or the manual approach?


r/adfs • • Sep 12 '22

ADFS attempting to build certificate chain from the old cert --30 days after expiration

5 Upvotes

I am not crazy knowledgeable about ADFS, but this one seems particularly weird. Maybe, someone here can point me to the correct direction

We did a cert renewal about a month ago. Everything worked fine.
Now (exactly 1 month after the original expiration date), we are having some issues using SSO. When I checked the Server Manager, I saw errors related to the creation of the certificate chain, but they were using the old certificate (checked the thumbprint)

I (maybe naively) tried to use the "Set-AdfsSslCertificate" command to tell the system which cert to use and got this response:

Could not connect to net.tcp://localhost:1500/policy. The connection attempt lasted for a time

span of 00:00:02.0296112. TCP error code 10061: No connection could be made because the target machine actively

refused it 127.0.0.1:1500.

Does anyone have any sort of idea what might be the issue?
Or could point me in the right direction?


r/adfs • • Nov 22 '21

AD FS 2016 ADFS on server core

5 Upvotes

So in a previous post I found out there is no remote RSAT tool and I have to manage it all via powershell.

Well I hit my first hurdle today, I need to create a new access control policy and looking at the new-adfsaccesscontrolpolicy commandlet requires a metadata file to create the policy off of.

I cannot find anywhere on how this metadata access control file is created.

Can anyone help? Anyone finding there is not much doc on powershell adfs configuration?


r/adfs • • Feb 18 '21

AD FS 2019 ADFS with WID primary server split brain

5 Upvotes

We are currently runining 2x ADFS servers in a farm using the WID database. I was working through testing my backup script using the rapid restore tool and wanted to ensure it worked on both nodes.

I logged onto the primary node and ran the script backup suceeded. I went to the secondary server and ran the following command to make it primary.

 set-adfssyncproperties -role primarycomputer

As most of you know this makes the secondary node primary. I was under the impression this would automatically make the previous primary become secondary. It does not.

I ended up running the command

  set-adfssyncproperties -role secondarycomputer -primarycomputer {primarycomputername}

I was a little surprised ADFS would allow you to have two computers that think they are both primary. The get-adfssyncproperties command shows both as primary and the ADFS console also was able to be opened on both. Presumably changes could have been made on both but i did not try.

I wonder what would be the outcome if you attempted to make changes on both nodes when they think they are both primary? Anyone run into this before or have any thoughts.


r/adfs • • Jan 06 '21

AD FS 2012 R2 Best upgrade path for 2012 R2 to 2019

5 Upvotes

Hi all,

I’m looking at upgrading our 2012 R2 Farm to a 2019 farm.

What is the best migration path here?

I’ve read a lot of people having great success with in-place upgrades without a hitch.

We have an extensive amount of applications using ADFS for SSO at the moment, so while I know a complete rebuild would be safest - I want to venture down the path of in place upgrades to save time.

We run thin on the dev and ops side so a full rebuild could take 6-12 months.


r/adfs • • Jan 28 '20

Confusion on adfs/ls/IdpInitiatedSignOn.aspx for server 2016

5 Upvotes

I'm reading through various documentation, postings, etc and I'm seeing conflicting information. Some places say that adfs/ls/IdpInitiatedSignOn.aspx should only be used for testing purposes. Other places say that to get a login page for your users, you should enable IdpInitiatedSignOn.aspx and customize it to your needs if you want.

What's the official answer here? Just as a side note, this has nothing to do with Office365 or Azure integration.


r/adfs • • Jul 30 '19

Windows Transport endpoint

5 Upvotes

Has anyone else got this alert from Azure? MS claim there is no end user impact, and i'm about to make the change on my development and test servers, but I was wondering if anyone else has checked this?

You’re receiving this email because we have detected a critical alert on one of your AdFederationService instances.

Title:

The Windows Transport endpoint is enabled. It is recommended that the endpoint be disabled from the extranet due to a known security vulnerability.

Description:

WS-Trust Windows transport endpoints (/adfs/services/trust/2005/windowstransport and /adfs/services/trust/13/windowstransport) are enabled for extranet usage in your AD FS farm. This will allow NTLM logins to be processed from the extranet. As a result, it will bypass AD FS lockout protections and allow brute force password attacks or account lockouts on the user account.

Recommended action

Please disable the endpoints immediately from being exposed to the extranet by executing the following PowerShell cmdlets below. There is no end user impact to performing this operation.

Set-AdfsEndpoint -TargetAddressPath /adfs/services/trust/2005/windowstransport -Proxy $false 
Set-AdfsEndpoint -TargetAddressPath /adfs/services/trust/13/windowstransport -Proxy $false 

r/adfs • • Jun 18 '19

ADFS Login page and Ratelimits

5 Upvotes

Hi

I have an adfs login page like the one linked below and am wondering if there's a mechanism to ratelimit a user if he tries to login too many times.Asin are there bruteforcing mitigations present for adfs login pages?

https://www.citrix.com/blogs/wp-content/uploads/2016/07/ADFS_Login_Page_2.png


r/adfs • • Jan 11 '19

Adfs with MFA

5 Upvotes

Can some one tell me what are the advantages of having Adfs MFA rather then having MFA from Azure Active Directory? Many Thanks


r/adfs • • May 08 '18

AD FS 2016 ADFS 2016 Token Life Definitions

5 Upvotes

I am confused out of my mind about these TokenLifes.

I understand that the TokenLifeTime on an RPT is the duration of the access token.

Looking at the ADFS properties there is SsoLifeTime and PersistentSsoLifeTimeMins

Can someone please explain what those are and how they work?

Is the SsoLifeTime the "refresh token" duration?


r/adfs • • Apr 30 '18

AD FS 2016 ADFS in Windows 2016 - Smart Lockout Feature

5 Upvotes

According to this blog post - https://cloudblogs.microsoft.com/enterprisemobility/2018/03/05/azure-ad-and-adfs-best-practices-defending-against-password-spray-attacks/

Smart Lockout is suppose to now be a native feature in ADFS on Windows 2016 after March 2018. Is anyone actually using it. I can find zero documentation out there about it except one dead link - https://support.microsoft.com/en-us/help/4096478/extranet-smart-lockout-feature-in-windows-server-2016

Any help would be appreciated.


r/adfs • • Nov 28 '17

Centered Login Page to match Azure [x-post]

5 Upvotes

A style sheet has been shared to allow your on-prem AD FS to be consistent with the look-and-feel of the centered Azure AD Sign-in.

Info here

Download on github

Looks pretty good so far, except the update password page looks wrong for me.


r/adfs • • Nov 01 '17

Troubleshooting ADFS / SAML Communication

5 Upvotes

I've recently deployed a new ADFS Farm and configured a couple trusts and when dealing with some problems that came up I ran across some very useful tools I thought might be of use to the folks, here.

First is Fiddler and the Fiddler Federation Inspector. After installing Fiddler just locate all the DLLs in the Federation Inspector's bin\Debug folder and copy them to the "Inspectors" folder in Fiddler's install folder. More details are here.

A second tool is Microsoft's Claims X-Ray. Someone at Microsoft pointed this out to me when we were working on an issue with the 'street' attribute not passing. This requires setting up a replying party trust for the service but it allows you to configure whatever claim rules you want to test. Again, pretty handy.

Let me know if you have any questions.


r/adfs • • Jun 02 '17

How do you handle Token-Signing certificate rollover?

5 Upvotes

From what I can gather, my web applications need to have this in the web.config:

<issuerNameRegistry type=...>
    <trustedIssuers>
        <add thumbprint="asdfasdfasdfasdf" />
    </trustedIssuers>
</issuerNameRegistry>

That thumbprint is locked in to a very specific certificate generated by ADFS and assigned to the "Token-Signing" certificate. (Correct me if I'm wrong on any point here.)

So once every three years (by default), that cert is going to roll over, and the new cert's thumbprint is not going to match this one. What do you do then? Is there an automated way that the web.config is getting updated, or is there a different way to configure it so it always uses the "latest" certificate and there's no downtime? It gives you one month to make the change, but is there a notification that comes out saying, "Hey, make the config change?"


r/adfs • • Jun 15 '15

Botched ADFS 3.0 Setup - In Cloud email, with only one OU federated

5 Upvotes

TL;DR - Have a company that wants to use In Cloud emails, and federated accounts from a unique OU. Tried to do it, everything broke. Need to do it within 6 hours. Help me Obi Wan Kenobi.

Hi all,

Getting desperate, and need some input / help with an ADFS install I'm doing.

Background: I have a company with 500 people, who all use O365 email accounts, and have separate AD accounts. The company wants to consolidate their local AD accounts with their O365 email accounts, and has asked me to do so.

I have set up mulitple ADFS / O365 environments previously, but have never done interacted with an existing setup in this manner previously; needless to say I was excited, and confidant, in completing this.

Went through most of the whole 9 yards:

  • Set up ADFS role and federated the domain

  • Set up ADFS Proxy role (WAP)

  • Set all extraneous details (Internal DNS, external DNS, firewalls, UPNs, test OU)

And while I was setting up DirSync (which is giving me a whole host of issues I'd never seen before), I was approached by users who were telling me that they were no longer able to sign into their 'In Cloud' email accounts.

For users that were having issues logging into O365, when I tried to login with an In Cloud account, I was immediately redirected to my Federation Service website.

I was extermely puzzled, for two reasons:

  1. I hadn't set up DirSync

  2. I hadn't published my ADFS WAP site

So, why was O365 immediately directing me to my ADFS site? Secondly, how was this even happening? On top of this, not only were users not able to log in with their In Cloud passwords, but were not able to log in with their on premise AD accounts either!

I immediately changed the domain back from "Federated" to "Managed"; after a little while, all user accounts were accessible as previous.

I'm not sure what has happened, and, right now, I'm confident that it's my fault somewhere, and that I can rectify it.

What I need to do:

  • In Cloud users (with email *@COMPANY.com), to continue to be able to use their email accounts

  • Users that I select within DirSync (via OU), federate and use their AD credentials

  • Both account types to live together in peace and harmony, and live happily ever after

I would greatly appreciate any input anyone has, I need to get this solved in the next 6 hours.


r/adfs • • Sep 20 '25

Large Enterprise ADFS Migration - Seeking Community Experiences

4 Upvotes

Hi all,

Our organization is a large enterprise that has been heavily invested in Active Directory Federation Services (ADFS) for years. We're now considering initiating a project to review and potentially trial more modern authentication mechanisms, but the scope feels daunting given our deep integration.

Our Current Situation:

  • Extensive ADFS deployment with numerous integrated applications

  • Complex on-premises infrastructure dependencies

  • Significant investment in existing ADFS customizations and configurations

  • Large user base with established authentication workflows

What We're Seeking:

I'd love to hear from others who have navigated similar transitions:

Migration Experiences:

  • Has anyone here led or been part of a large-scale ADFS migration?

  • What were the biggest challenges you encountered?

  • How did you handle the transition timeline and user impact?

  • What lessons learned would you share?

Solution Comparisons:

  • Microsoft Entra ID (Azure AD): Experiences with hybrid deployments, cost implications, feature gaps vs ADFS?

  • Third-party solutions (Okta, Ping Identity, Auth0, etc.): How do they compare in enterprise environments?

  • Other modern alternatives: What else should we be evaluating?

Practical Considerations:

  • Cost analysis: Hidden costs beyond licensing?

  • Integration challenges with legacy applications?

  • Change management strategies that worked well?

  • Security and compliance considerations during migration?

Specific Questions:

  1. For those who moved to Entra ID - was the cost savings as significant as Microsoft claims?

  2. Any experiences with running parallel systems during transition?

  3. How did you handle applications that were tightly coupled to ADFS?

Any insights, war stories, recommendations, or cautionary tales would be incredibly valuable as we plan our approach.

Thanks in advance for sharing your experiences!


r/adfs • • May 30 '25

MFA through AD FS not working suddenly

Post image
4 Upvotes

We've been using AD FS with Azure as the MFA method for years. Suddenly at 6:30pm EST we started getting reports of users being unable to sign into services. When they try to authenticate, they get properly redirected to the AD FS login page, which then sends them to the MFA prompt. However instead of the proper MFA prompt, it says "For security reasons, we require additional information to verify your account", and then redirects the user to their Microsoft account info on the security tab. Oddly enough, we have some services that SSO directly through Azure and require MFA, and those work without issue. As does logging into Azure and Microsoft 365. It seems to only be impacting services getting sent to the MFA prompt from our AD FS servers. We've had this in use for years now without issue, and I'm not aware of any MFA-related changes that went into effect today. Any idea what might be going on here?


r/adfs • • Aug 01 '23

AD FS 2019 SCIM for AD FS - Any recommended 3rd party tools?

4 Upvotes

Our company runs Active Directory Federation Services, with no plan of changing.

Management is intrigued by SCIM User Provisioning. I am aware that Microsoft itself does not support SCIM on ADFS.

Is anyone currently using - or award of - any recommended 3rd party solution for enabling SCIM on AD FS?