Search This Blog

Monday, July 20, 2015

Secure Federation Server Farm (ADFS) With Multi Factor Authentication (MFA)

 

In our previous blog, we have covered about setup federation farm. AD FS is a standards-based service that allows the secure sharing of identity information between trusted business partners (known as a federation) across an extranet.

Most people will deploy Web Application Proxy to avoid publish ADFS to the Internet. Yes, this is one of the way. But we want to be more secure !

In order to achieve more secure environment, we can deploy MFA in our on-premise environment. Check out on our deployment scenario:

[ Scenario]

Blog-MFA

  • Domain Controller
  • ADFS Farm
  • Application Proxy
  • Azure Subscription
  • Office365 (for testing app)

[ Before setup scenario ]

User login to portal.office.com with valid username. Page will redirect to ADFS server page and request to enter valid password. At this moment, communication has reached to Web Application Proxy and ADFS. ADFS will verify the username and password where user account is reside in the domain controller.

1

After authenticated, it will redirect to Office365 portal without 2nd level authentication.

[ Configuration for MFA]

Go to Azure Management Portal and create a new Multi Factor Auth provider under Active Directory Section. You can enable either per user based or per authentication.

image

Click on Manage, download the MFA Server and install on the protected server.

image

Install the MFA Server and use the Activation Credential (valid for every 10 minute). Skip any configuration wizard.

Click on ADFS and configure the settings that you require and click Install ADFS Adapter. After installation of ADFS Adapter, you’re require to restart the server.

2

Next step is Add User. Click on Users and Import from Active Directory. For our test purpose, we select [email protected]. By default, user will be disable if no phone number is enter.

3

Just edit the user, enter phone number and tick enable

4

Perform a test by entering a valid password. You will receive a call. Just press # to confirm.

5

6

7

We are still not yet complete.Open Powershell on ADFS server and execute

.\Register-MultiFactorAuthenticationAdfsAdapter.ps1

8

Restart the server and modify the global policy from ADFS Snap-in. Go to Authentication Policies | Edit Global Multi Factor Authentication.

9

Set a policy. We just enable MFA for alphauser login from Extranet either he is using unregistered or registered devices.

10

[Verification]

Time for verification and make sure it is working as expected.

This round rather than redirect to Office365 after key in credential, the system will prompt user to 2nd level authentication. You will receive a call. Just press # to confirm and enter additional security question.

11

12

Once completed, you will able to access Office365 portal.

13

In this article, we have secure our environment by enabling MFA when customer using Active Directory Federation Server with Office365.