Configuring ADFS On Windows Server 2012

Posted by: admin
Category: Windows Server

While configuring ADFS on Windows server, we face too many issues although these issues were minor in severity but higher in priority, so thought to me summarize these nitty gritty of installation in one place to save time and efforts.

Pre-requisites

1.  Windows server 2012.
2. IIS installation on server.

Install the ADFS role in server Windows Server 2012

Following are the steps to install the ADFS Role in Server using server manager

1.  Open Server Manager
2. Click on Manage Button

You are able to see Popup window of “Add Roles and Features Wizard”.

3. Click on Next – Select “Role-based or feature-based installation” installation type to configured a single server by adding role services, and features.

4. Click on Next – “Select a server from the server pool” option to install roles and features.

5. Click on Next – Select one or more roles to install on the selected server and make sure that below roles are checked to install on the

1.  Federation Service
2. AD FS 1.1 Web Agents

6. Click on Next – Select one or more features to install on selected server. (Optional)

7. Click on Install to install selected server roles and features.

Prepare IIS for ADFS

A SSL Certificate is required to complete the ADFS configuration, this can be created from the IIS or it can be bought off the shelf from any third party vendor. The steps to create the same are as follows.

Note: This certificate is not recommended for a production environment.

To Request Domain cert – ..com or Import the federation service URL cert on the Server.
You can either import it directly into IIS, or into the Personal Store of the Local computer using the Certificates Snap-in in an MMC.

Note: The certificate needs to be in PFX format, with the private key when importing into the ADFS proxy servers.

Accomplish this by first importing the cert into the server that created the CSR i.e. Certificate Signing Request, then export it as a .pfx with the private key.
Update IIS bindings on default web site for 443 and run iisreset.

Common Issues:

While you are trying to Complete Certificate Request, SSL certificates might be disappearing from the certificate list when we restart the IIS or Restart the Certificate console. Following steps are to resolve for the same.

1.  Open Command Prompt / PowerShell as an Administrator, pressing Win+R and typing cmd, / Win+A
2. Certutil -repairstore my xxxxxxxxxxxxxxxxxxxxxx Where xxxxxxx is the serial key of the certificate

This will repair your personal certificate store.

Configure ADFS Federation service

    • Run ADFS Management Console – Use shift+right click on ADFS Management and run as domain administrator.
    • Run ADFS config wizard –> Create new federation service –> New federation server farm.
    • Specify properties for service account.

    • Configured certificate for Service Communications, Token-decrypting, Token-signing. [Set as Primary certificate if multiple certificates are configured].
    • Restart “Active Directory Federation Windows” services.
    • Make Sure that the federation service has started successfully. To verified that you can gone through Event Viewer –> Applications and Services Logs –> AD FS –> Admin

    • You can find log which contain details as below:

“The Federation Service started successfully. The following service hosts have been added:”

    •  Federation Server Proxy ServiceHost
    • AD FS 1.x Trust Information Service

Configuring Application to interact with ADFS for Authentication

In order to allow an application to interact with ADFS, we need to configure a trust relationship between ADFS and our Application, following are the steps to do the same.

Add Relying Part Trust relationship to AD FS.

Click Tools menu, and then click AD FS Management

In the left-hand pane, navigate under AD FS > Trust Relationships. Select Relying Party Trust and click on Add Relying Party Trust from the Actions panel.

The AD FS screen is displayed.

Click Start and select the data Source screen is displayed.

Click Next, The Specify Display Name screen is displayed

In the Display name box, type a name for the Relying Party Trust you are configuring for your application and AD FS and click Next.

Profile screen is displayed. Click AD FS profile, and then click Next

The Configure Certificate screen is displayed, Click Next.

The Configure URL screen is displayed. Select Enable Support for the WS-Federation Passive protocol check box. This will validate the authentication request and check for the Active Directory user.

The Configure Identifiers screen is displayed.

Click Next, The Choose Issuance Authorization Rules screen is displayed. Permit all users to relying this party.

Click Next, The Ready to Add Trust screen is displayed. Click each tab and verify the data selected in the earlier screens, and then click Next. The Finish screen is displayed.

Click the checkbox Open the Edit Claim Rules dialog for this relying party trust when the wizard closes and then click Close.

Claim Mapping for Relying Party Trust

Claims are the fields that we need ADFS to verify and share as part of the authentication Edit Claim popup is displayed for you application.

Click on Add Rule. Select “Send LDAP Attributes as Claims” as a rule template. Click Next.

Enter rule name and select “Active Directory” from the Attribute store.

Click Finish.

Click Apply. You can see “Your Application Name” in Relying Party Trust list.

Verify ADFS installation

From AD FS and client machine, test https://xxx.domain.com/adfs/ls/IdpInitiatedSignon.aspx

Major issues after initial setup

Issue 1: “TCP error code 10061: No connection could be made because the target machine actively refused it”

To change the services net.tcp port from 1501 to 1601

1.    Launch PowerShell on AD FS server.
2.   Add the AD FS PowerShell snap-in: add-pssnapin microsoft.adfs.powershell
3.   Configure the Services net.tcp port via the Set-ADFSProperties cmdlet:
Set-ADFSProperties -nettcpport 1601
4.   Confirm the change: Get-ADFSProperties
5.   Restart the AD FS Windows service in the Services console

To change the administration net.tcp port from 1500 to 1600

1.   Launch PowerShell

2. Get a WMI object into a $temp variable: $temp= Get-WmiObject -namespace root/ADFS -class SecurityTokenService

3. Set the ConfigurationServiceAddress property to the new net.tcp address using the new port: $temp.ConfigurationServiceAddress=”net.tcp://localhost:1600/policy”

4. Write your change back to the object: $temp.put()

5. Restart the AD FS Windows service in the Services console

6. Verify the change from an elevated Command Prompt:

a. netstat -anob > netstat.txt
b. Open netstat.txt in Notepad
c. Find 1600

Issue 2: Login with windows logon prompt (not AD FS logon form, this is ADFS issue)

As expects a login in the form of domain\user instead of Windows popup box.

We have to need replace login prompt with form, for that we need to change the sequence of local authentication type for ADFS server.

On the ADFS server: Open IIS Manager –> Expand the Default Site –> adfs –> ls, Right-Click the site and Explore to get to the web.config folder.

Here we have need to put the forms login above the integrated login. Reorder the first two lines so that the localauthentication section looks like below:

Default XML:

Re-Order Authentication Type:

ADFS will present form instead of login prompt after saving above changes.

Author: Ankit Bhatt

Let’s build your dream together.

Aceh4D Aceh4D slot gacor slot gacor slot gacor Aceh4D slot gacor aceh4d slot gacor slot gacor slot gacor aceh4d aceh4d aceh4d toto slot toto slot toto slot toto slot toto slot toto slot toto slot toto slot toto slot toto slot aceh4d aceh4d aceh4d slot online slot toto slot bet 400 acehbola Aceh4d Slot Big Win scatter hitam Situs Slot, togel online tus4d scatter hitam Situs Bet 100 perak acehbola acehbola, slot online acehbola, Toto Togel Slot Gacor Slot Gacor Slot Gacor Parlay Bola Acehbola aceh4d aceh4d aceh4d, situs toto 4d aceh4d, situs togel Slot Gacor acehbola Tus4D acehbola tus4d, slot online, bandar togel aceh4d, slot online, slot bet 100 aceh4d, slot toto acehbola, Link Togel acehbola, slot bet 200 aceh4d acehbola, slot toto aceh4d aceh4d aceh4d scatter hitam tus4d, situs toto & togel 4d aceh4d acehbola acehbola, toto togel acehbola aceh4d aceh4d tus4d acehbola Agen Toto 4D slot bet 200 acehbola, slot toto Toto Slot slot dana slot qris dana Slot Online Gacor Slot Online Aceh4D Scatter Hitam slot bet 200 aceh4d Slot gacor Slot gacor Slot gacor Slot gacor Slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot toto togel slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot toto slot gacor slot gacor slot gacor slot gacor slot gacor SLOT ONLINE acehbola slot toto slot gacor slot gacor Acehbola, Agen Togel Agen Slot Gacor Slot Gacor Slot Toto Toto Bet 200 slot gacor ACEH4D slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor slot gacor Slot Online toto slot Slot bet 200 Scatter Hitam poker online slot gacor toto slot situs togel SLOT GACOR SLOT GACOR aceh4d jmkbet jmkbet SLOT GACOR Bandar Toto Togel Toto Macau 4D Toto Macau Aceh4d Aceh4d Aceh4d Aceh4d Aceh4d Aceh4d Aceh4d Aceh4d-slot-toto aceh4d-link-alternatif acehbola jmkbet Daftar Aceh4d tus4d login neototo situs aceh4d tus4d-login aceh4d Aceh4d Aceh4d gacor Aceh4d Tus4D slot toto slot toto Lapak7d aceh4d aceh4d acehbola Neototo Neototo Neototo Neototo Neototo Neototo Neototo lapak7d neototo neototo neototo jmkbet aceh4d jmkbet aceh4d aceh4d aceh4d Toto Slot tus4d Judi Slot Gacor neototo Aceh4d Acehbola toto slot 4d neototo jmkbet Aceh4D togel online neototo aceh4d Aceh4D acehbola acehbola Slot Toto Gacor slot gacor slot gacor Aceh4D acehbola acehbola acehbola Aceh4D Aceh4D acehbola bacan4d bacan4d bacan4d Slot Toto Slot Toto aceh4d, slot qris Aceh4D Aceh4D Aceh4D AcehBola Slot Gacor Aceh4D Aceh4D

aceh4d

aceh4d

neototo

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

Slot Gacor

ACEH4D

ACEH4D

login aceh4d

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

re

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

slot gacor

slot gacor

slot gacor

slot gacor hari ini

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

slot gacor hari ini

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

bobatoto

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

slot gacor

slot gacor hari ini

slot gacor hari ini

slot maxwin

slot gacor

aceh4d

toto slot

aceh4d

slot gacor

slot qris

slot qris

toto slot

toto slot

aceh4d

toto slot

toto slot

toto slot

toto slot

arahtogel

jpmania

toto slot

toto slot

toto slot

toto slot

toto slot

toto slot

Slot gacor

aceh4d

slot gacor hari ini

toto slot

toto slot

Slot gacor

Slot gacor

Slot gacor

Poker Online

slot gacor

Poker Online

slot gacor hari ini

Poker Online

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

Bandar togel toto

Slot dana

Toto slot gacor

Bandar Toto 4D

Agen toto 88

Toto togel 4d

Bandar togel resmi

slot gacor

Scatter hitam

slot toto togel

Slot dana

Bandar togel online

Situs slot

slot toto togel

slot gacor

slot gacor

Bandar togel 4D

aceh4d login

toto slot

slot gacor

toto slot

slot gacor

aceh4d

aceh4d

aceh4d

aceh4d

Slot qris

slot qris

Bandar togel online

Togel online

aceh4d login

Slot gacor

Aceh4d

Togel Online

toto slot

slot toto

slot gacor

Togel toto macau

ACEH4D

ACEH4D

SLOT GACOR

SLOT GACOR

SLOT GACOR

Slot toto gacor

Togel online

Slot toto

Slot Toto

Slot qris

Slot gacor

aceh4d

Slot gacor

tus4d

tus4d

Slot gacor

Aceh4d

slot gacor

slot gacor

slot toto

ACEH4D

Slot qris

slot online

scatter hitam

slot gacor

slot gacor

slot indonesia

togel online

aceh4d

slot gacor

tus4d

Togel toto online

Slot Gacor

Slot Toto

Bandar togel online

Slot indonesia

toto slot gacor

scatter hitam

slot gacor

slot toto gacor

aceh4d

neototo

slot indonesia

acehbola

situs toto slot

ACEH4D

acehbola

slot toto gacor

slot gacor

toto slot

slot gacor

aceh4d

toto slot

toto slot

Slot online gacor

aceh4d

aceh4d

Slot online

https://stitypilahat.ac.id/

ACEH4D LOGIN

Slot toto gacor

Bandar togel online

ACEH4D LOGIN

acehbola

aceh4d

Toto slot

Scatter hitam

jmkbet

aceh4d

ACEH4D

ACEH4D

ACEH4D

ACEH4D

ACEH4D

slot gacor

slot toto gacor

slot gacor

slot toto

togel toto macau

slot resmi gacor

slot gacor

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

Slot toto

acehbola

acehbola

slot gacor

ACEH4D

ACEH4D

aceh4d

ACEH4D

tus4d

tus4d

Slot gacor

ACEH4D

ACEH4D

SCATTER HITAM

aceh4d

aceh4d

aceh4d

slot toto

slot toto

slot toto

slot toto

aceh4d

slot toto

slot gacor

slot toto

aceh4d

aceh4d

scatter hitam

scatter hitam

scatter hitam

Toto slot

ACEH4D

scatter hitam

scatter hitam

scatter hitam

scatter hitam

ACEH4D

ACEH4D

slot toto

tus4d

situs toto

slot toto

aceh4d

slot maxwin

aceh4d

slot toto

tus4d

tus4d

acehbola

cie4d

slot toto gacor

slot online

ACEH4D

slot gacor online

slot toto 4d

toto 4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

scatter hitam

toto slot gacor

slot toto

slot toto

situs togel

situs togel

tus4d

tus4d

aceh4d

toto slot

bobatoto

situs judi online terpercaya

slot online gacor hari ini

togel online terpercaya

bandar togel resmi

link slot gacor terbaru

situs slot dan togel terpercaya

acehbola

acehbola

acehbola

acehbola

toto slot

slot zeus

slot toto

togel toto 4d

toto slot gacor

toto 4d

slot gacor

slot toto

slot dana

depo 5000

situs togel

slot maxwn

toto togel

slot gacor

aceh4d

toto macau

slot toto

situs togel

togel online

togel toto 4d

slot gacor

slot dana

slot gacor

neototo

neototo

toto gacor

neototo

slot gacor

slot gacor

slot toto

slot qris

scatter hitam

slot qris

slot dana

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

toto slot gacor

aceh4d

slot gacor

toto slot

aceh4d

aceh4d

aceh4d

slot toto

slot toto

aceh4d

slot maxwin

situs toto

slot gacor

toto slot gacor

toto slot

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

slot gacor

slot gacor

slot gacor

toto gacor

acehbola

acehbola

acehbola

acehbola

acehbola

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

aceh4d

toto slot

aceh4d

aceh4d

aceh4d

slot dana

situs toto

slot maxwin

slot gacor

slot thailand

situs toto

slot dana

rtp slot

aceh4d slot

ACEHBOLA

aceh4d

situs gacor

ACEHBOLA

jmkbet

neototo

aceh4d

aceh4d

neototo

ACEHBOLA

neototo

aceh4d

aceh4d

aceh4d

aceh4d

slot dana

situs toto

situs toto

situs toto

slot toto

acehbola

situs toto

slot gacor

ACEHBOLA

ACEHBOLA

ACEH4D

SLOT DANA

ACEHBOLA

SITUS TOTO GACOR

SITUS SLOT TOTO

neototo

neototo

aceh4d

acehbola

aceh4d

aceh4d

slot gacor

acehbola

toto slot

acehbola

acehbola

Neototo

Slot Toto

toto slot

aceh4d

slot 4d

slot toto

aceh4d

situs judi

slot gacor

toto slot

scatter hitam

toto slot

slot thailand

aceh4d

aceh4d

slot toto

slot toto

aceh4d

aceh4d

slot gacor

slot dana

Slot Gacor

Situs togel

Slot Gacor

https://ppid.isi-padangpanjang.ac.id/

scatter hitam

togel online

slot toto

togel online

slot gacor

toto slot

aceh4d

slot gacor

neototo

slot 4d

toto gacor

aceh4d

aceh4d

aceh4d

slot maxwin

slot gacor

slot gacor

situs slot

slot dana

slot gacor

slot online

slot toto

slot maxwin

aceh4d

slot dana

slot toto

neototo

jmkbet

tus4d

aceh4d

slot toto

Bokep Indonesia

Bokep Sma