Deploy Remote Access with OTP Authentication
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016
Windows Server 2016 and Windows Server 2012 combine DirectAccess and Routing and Remote Access Service (RRAS) VPN into a single Remote Access role.
In this scenario a Remote Access server with DirectAccess enabled is configured to authenticate DirectAccess client users with two-factor one-time password (OTP) authentication, in addition to standard Active Directory credentials.
Before you begin deploying this scenario, review this list for important requirements:
Deploy a Single DirectAccess Server with Advanced Settings must be deployed before you deploy OTP.
Windows 7 Clients must use DCA 2.0 to support OTP.
OTP does not support PIN change.
A Public Key Infrastructure must be deployed.
For more information see: Test Lab Guide Mini-Module: Basic PKI for Windows Server 2012.
Changing policies outside of the DirectAccess management console or Windows PowerShell cmdlets is not supported.
In this scenario
The OTP authentication scenario includes a number of steps:
Deploy a Single DirectAccess Server with Advanced Settings. A single Remote Access server must be deployed before configuring OTP. Planning and deploying a single server includes designing and configuring a network topology, planning and deploying certificates, setting up DNS and Active Directory, configuring Remote Access server settings, deploying DirectAccess clients, and preparing intranet servers.
Plan Remote Access with OTP Authentication. In addition to the planning required for a single server, OTP requires planning for a Microsoft certification authority (CA) and certificate templates for OTP; and a RADIUS-enabled OTP server. Planning might also include a requirement for security groups to exempt specific users from strong (OTP or smart card) authentication. For information regarding the configuration of OTP in a multi-forest environment, see Configure a Multi-Forest Deployment.
Configure DirectAccess with OTP Authentication. OTP deployment consists of a number of configuration steps, including preparing the infrastructure for OTP authentication, configuring the OTP server, configuring OTP settings on the Remote Access server, and updating DirectAccess client settings.
Troubleshoot an OTP Deployment. This troubleshooting section describes a number of the most common errors that can occur when deploying Remote Access with OTP authentication.
Increase security-Using OTP increases the security of your DirectAccess deployment. A user requires OTP credentials in order to gain access to the internal network. A user supplies OTP credentials via the Workplace Connections available in the network connections on the Windows 10 or Windows 8 client computer, or by using DirectAccess Connectivity Assistant (DCA) on client computers running Windows 7. The OTP authentication process works as follows:
The DirectAccess client enters domain credentials to access DirectAccess infrastructure servers (over the infrastructure tunnel). If no connection to the internal network is available, due to a specific IKE failure, Workplace Connection on the client computer notifies the user that credentials are required. On client computers running Windows 7, a pop-up requesting smart card credentials appears.
After the OTP credentials have been entered, they are sent over SSL to the Remote Access server, together with a request for a short-term smart card logon certificate.
The Remote Access server initiates validation of the OTP credentials with the RADIUS-based OTP server.
If successful, the Remote Access server signs the certificate request using its registration authority certificate, and sends it back to the DirectAccess client computer
The DirectAccess client computer forwards the signed certificate request to the CA and stores the enrolled certificate for use by the Kerberos SSP/AP.
Using this certificate the client computer transparently performs standard smart card Kerberos authentication.
Roles and features included in this scenario
The following table lists the roles and features required for the scenario:
|Role/feature||How it supports this scenario|
|Remote Access Management role||The role is installed and uninstalled using the Server Manager console. This role encompasses both DirectAccess, which was previously a feature in Windows Server 2008 R2, and Routing and Remote Access Services which was previously a role service under the Network Policy and Access Services (NPAS) server role. The Remote Access role consists of two components:
1. DirectAccess and Routing and Remote Access Services (RRAS) VPN-DirectAccess and VPN are managed together in the Remote Access Management console.
The Remote Access role is dependent on the following server features:
- Internet Information Services (IIS) Web Server - This feature is required to configure the network location server, utilize OTP authentication, and configure the default web probe.
|Remote Access Management Tools feature||This feature is installed as follows:
- It is installed by default on a Remote Access server when the Remote Access role is installed, and supports the Remote Management console user interface.
The Remote Access Management Tools feature consists of the following:
- Remote Access GUI and Command Line Tools
- Group Policy Management Console
Hardware requirements for this scenario include the following:
A computer that meets the hardware requirements for Windows Server 2016 or Windows Server 2012.
In order to test the scenario, at least one computer running Windows 10, Windows 8, or Windows 7 configured as a DirectAccess client is required.
An OTP server that supports PAP over RADIUS.
An OTP hardware or software token.
There are a number of requirements for this scenario:
Software requirements for single server deployment. For more information, see Deploy a Single DirectAccess Server with Advanced Settings.
In addition to software requirements for a single server there are a number of OTP-specific requirements:
CA for IPsec authentication-In an OTP deployment DirectAccess must be deployed using IPsec machines certificates issued by a CA. IPsec authentication using the Remote Access server as a Kerberos proxy is not supported in an OTP deployment. An internal CA is required.
CA for OTP authentication-A Microsoft Enterprise CA (running on Windows 2003 Server or later) is required to issue the OTP client certificate. The same CA used for issuing certificates for IPsec authentication can be used. The CA server must be available over the first infrastructure tunnel.
Security group-To exempt users from strong authentication, an Active Directory security group containing these users is required.
Client-side requirements-For Windows 10 and Windows 8 client computers, the Network Connectivity Assistant (NCA) service is used to detect whether OTP credentials are required. If they are, the DirectAccess Media Manager prompts for credentials. NCA is included in the operating system, and no installation or deployment is required. For Windows 7 client computers, DirectAccess Connectivity Assistant (DCA) 2.0 is required. Learn how to Install and Configure Advanced DirectAccess.
Note the following:
OTP authentication can be used in parallel with smart card and Trusted Platform Module (TPM)-based authentication. Enabling OTP authentication in the Remote Access Management console also enables use of smartcard authentication.
During Remote Access configuration users in a specified security group can be exempt from two-factor authentication, and thus authenticate with username/password only.
OTP new PIN and next tokencode modes are not supported
In a Remote Access multisite deployment, OTP settings are global and identify for all entry points. If multiple RADIUS or CA servers are configured for OTP, they are sorted by each Remote Access server according to availability and proximity.
When configuring OTP in a Remote Access multi-forest environment, OTP CAs should be from the resource forest only, and certificate enrollment should be configured across forest trusts. For more information, see AD CS: Cross-forest Certificate Enrollment with Windows Server 2008 R2.
Users who are using a KEY FOB OTP token should insert the PIN followed by the tokencode (without any separators) in the DirectAccess OTP dialog. Users who are using PIN PAD OTP token should insert only the tokencode in the dialog.
When the WEBDAV is enabled then OTP should not be enabled.
The following are known issues when configuring an OTP scenario:
Remote Access uses a probe mechanism to verify connectivity to RADIUS-based OTP servers. In some cases this might cause an error to be issued on the OTP server. To avoid this issue, do the following on the OTP server:
Create a user account that matches the username and password configured on the Remote Access server for the probe mechanism. The username should not define an Active Directory user.
By default the username on the Remote Access server is DAProbeUser and the password is DAProbePass. These default settings can be modified using the following values in the registry on the Remote Access server:
If you change the IPsec root certificate in a configured and running DirectAccess deployment, OTP stops working. To resolve this issue, on each DirectAccess server, at a Windows PowerShell prompt, run the command:
Submit and view feedback for