• About

Information Dynamics

Information Dynamics

Category Archives: ADFS

Renewing ADFS Token-signing and Token-decrypting certificates

07 Wednesday Jul 2021

Posted by GIRISH SRINIVASA in ADFS, ADFS 4.0

≈ Leave a comment

Tags

Token-Signing

While trying to access ADFS federation metadata or trying to access CRM Org (configured for Claims Based Authentication) will produce the following errors if ADFS Token-signing and Token-decryption certificates are expired.

As viewed from ADFS Management Console:

Errors recorded in the Event Viewer for the above expired certificates:

The thumbprint values in the Error Logs can also be viewed through PS Command as shown below:

To get access to federation metadata again perform the following steps:
  1. Update Token-Signing and Token-Decrypting certificate

Running the above will add a pair of under Token-Signing and Token-Decrypting certificates

Run the PS Command Set-AdfsProperties -AutoCertificateRollover $false and delete the secondary certificate from the ADFS Management console view.

Ensure that the certificate chain is installed correctly under Trusted Root Certification Authorities

After the renewing the Token-Signing and Token-Decrypting certificates the Federationmetadata endpoint should now be accessible.

Problems installing ADFS using WID

03 Saturday Aug 2019

Posted by GIRISH SRINIVASA in ADFS, Windows Server 2012, Windows Server 2016

≈ Leave a comment

The Windows Internal Database service must be running in order to configure ADFS using WID. If the service is not running the following error will be displayed in configuration wizard

ADFSInstallation

An attempt to start the service will fail :

ADFSInstallation1

Modify the GPO definition to include NT SERVICE\ALL SERVICES and then start the WID service on the ADFS server.

ADFSInstallation2

 

Creating GMSA (Group Managed Service Account) using PS commands for ADFS Install

10 Sunday Mar 2019

Posted by GIRISH SRINIVASA in ADFS, PowerShell

≈ Leave a comment

Steps for creating GMSA
  1.  Open PS ISE as Administrator run >Add-KdsRootKey -EffectiveTime((get-date).AddHours(-10)) this will output a Guid this will generate a new root key in the Active Directory.
  2. Create a new ADservice account using New-ADServiceAccount [GMSAName] -DNSHostName [adfs.idynamics.com] -ServicePrincipalNames http:/[adfs.idynamics.com]
  3. Set SPN using setspn -s host/adfs.idynamics.com [idynamics]\[GMSAName]$

ADFS Configuration Database Errors

29 Friday Jan 2016

Posted by GIRISH SRINIVASA in ADFS

≈ Leave a comment

If the following error message is displayed while bring up the ADFS management console, then check that the ADFS service is running if not then start the same.

Screen24

 

Screen25.PNG

AD FS Customization

28 Saturday Nov 2015

Posted by GIRISH SRINIVASA in ADFS

≈ Leave a comment

In the article we looked at installation and configuration of Active Directory Federation Services (AD FS) on Windows Server 2012. In this post we explore customizations that can be done for the out of the box sign in page.

The default sign in page looks like the one below:

DefaultSign

Open PowerShell on the AD FS server and run the following commands. Change the image file accordingly.

PowerShellCommands

After the above commands are run the modified sign-in page looks like the one below.

ModifiedSignIn

Other customization’s that can be done are listed in the article

 

Issues and Limitations of Claim-based authentication when used with Dynamics CRM

20 Tuesday Oct 2015

Posted by GIRISH SRINIVASA in ADFS, ADFS 4.0, CRM2015, CRM2016, Dynamics 365, Dynamics CE 9

≈ Leave a comment

The following are some of the limitations of accessing Dynamics CRM platform using Claims-based authentication

  • Dynamics CRM does not enforce strong password policy and this task is handled by AD.
  • ADFS federation server sessions are valid up to 8 hours for deactivated or deleted users. The ADFS server tokens allocated to a web single sign-on (SSO) have cookie expiration of 8 hours. Therefore even when a user is deactivated or deleted from authentication provider as long as the user session is still active the user can continue to be authenticated to access resources.
  • Certificates created using the CNG key template are incompatible with Microsoft Dynamics CRM.
  • CRMAppPool account used for Dynamics CRM website must have read permission to the private key or encryption certificate.

Work around option(s):

  1. Disable the user in Dynamics CRM and AD.
  2. Reduce the ADFS token life time. (Power Shell). In ADFS 4.0 on Server 2016 TokenLifetime is replaced with SsoLifeTime and default is set to 480

 New Picture

Active Directory Federation Services (AD FS) – Windows Server 2012 R2

17 Saturday Oct 2015

Posted by GIRISH SRINIVASA in ADFS

≈ Leave a comment

The AD FS provides secured identity federation, single sign-on (SSO) capbalities for users to be able to use enterprise applications within an organization or across organizations (federated). Within Windows Server 2012 R2 AD FS is bundled as a role and compared to AD FS 2.0 the following are the notable differences:

  • AD FS is not dependent on IIS instead relies on HTTP.SYS.
  • Installation and Configuration can be done through Server Manager UI
  • Group Managed Service Account (gmsa) support. Although typically a service account with non-expiration passwords can be used.

Other capabilities of AD FS on Server 2012 platform are detailed here

Installation and Configuration of AD FS role:

Go to Server Manager > Dashboard and chooes Add roles and features

Screen1

The following will be set of screens that will be presented in the wizard

Screen2

Screen3

Screen4

Select Active Directory Federation Services role

Screen5

Screen6

Screen7

Click on Install on the final step in the wizard

Screen8

Screen9

Once the installation is completed additional Configuration steps must be performed and this will be indicated as shown below:

Screen10

Federation Service Configuration:

Screen11

The first server where AD FS role is installed in the domain typically becomes the Primary Federation Server. Hence the option “Create first federation server…” is selected. For configuring AD FS on additional sever the second option is selected.

Screen12

In the following screen specify the SSL certificate.

Screen14

Specify the service account to be used for running the ADFS service

Screen15

There are two options available for storing the ADFS configuration information viz., Windows Internal Database (WID) or SQL Server. A detail information is available here and this set up we choose WID.

Screen16

The final Review Options screen provides the option to store the configuration settings as Power Shell script and this script can be used for additional deployments without having to go through all the wizard steps again.

Screen17

Now click on the Configure button

Screen18

Additional Permissions to be Added or Verified:

  • Log On As Service (Accessed through Local Security Policy) should have the service account used for ADFS. This is done on the server where ADFS role is installed.

LogonAsService

  • The private key for the SSL certificate imported should have read permissions for the service account used for ADFS

Screen19

Things to Check:

I had named the service account for the AD FS service to be DEV\svc_adfs but found that the AD FS set up wizard removed the “_” and consequently this distored the SPN (Service Principal Name). As can been from the screen snap shot below the wizard picked up the account name to DEV\svcADFS.

Capture

I then recreated the account to read as: DEV\svc-adfs and then checked the SPN and the registration was correct.

SPN

As viewed in Active Directory:

Capture1

Testing:

  1. Access Federation metadata at: https://sts.dev.local/federationmetadata/2007-06/federationmetadata.xml
  2. Sign-In and Sign-Out at: https://sts.dev.local/adfs/ls/idpinitiatedsignon.aspx

Once above the testing is complete then ADFS is successfully configured.

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • November 2021
  • August 2021
  • July 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • March 2019
  • September 2018
  • February 2018
  • January 2018
  • December 2017
  • January 2017
  • August 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • November 2014
  • October 2014
  • September 2014
  • July 2014

Categories

  • ADCS
  • ADFS
  • ADFS 4.0
  • ASP.NET Core
  • Azure
  • Azure AD
  • Azure AD DS
  • Azure B2C
  • CRM 2011
  • CRM2013
  • CRM2015
  • CRM2016
  • Docker
  • Dynamics 365
  • Dynamics 365 CE Online
  • Dynamics 365 Portals
  • Dynamics CE 9
  • Knockout and TypeScript
  • OAuth2.0/OpenIDConnect
  • Power Platform
  • PowerApps
  • PowerShell
  • SharePoint 2019
  • Spkl
  • Uncategorized
  • WebAPI
  • Windows Server 2012
  • Windows Server 2016

Meta

  • Register
  • Log in

Blog at WordPress.com.

  • Follow Following
    • Information Dynamics
    • Already have a WordPress.com account? Log in now.
    • Information Dynamics
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...