Two-factor authentication for Windows Remote Desktop Services (RDS)
Find a file
2015-04-29 15:32:06 +02:00
radar-radius@736ed3e1ab Latest radar-radius 2015-04-29 08:23:10 +02:00
server Logo on sms form. Fixes #8 2015-04-28 13:18:24 +02:00
web Logo on sms form. Fixes #8 2015-04-28 13:18:24 +02:00
.gitignore Rename: RDSFactorWeb -> web, RDSFactor -> server 2015-04-28 12:00:02 +02:00
.gitmodules Removed the bundled radar-radius. Added the original as submodule 2015-04-10 11:59:18 +02:00
install-server.bat Rename: RDSFactorWeb -> web, RDSFactor -> server 2015-04-28 12:00:02 +02:00
install-web.bat Rename: RDSFactorWeb -> web, RDSFactor -> server 2015-04-28 12:00:02 +02:00
LICENSE Create LICENSE 2015-04-10 15:31:20 +02:00
README.md Update README.md 2015-04-29 15:32:06 +02:00
restart-server.bat Bat scripts to uninstall, install and restart radius server 2015-04-28 08:46:22 +02:00
uninstall-server.bat Rename: RDSFactorWeb -> web, RDSFactor -> server 2015-04-28 12:00:02 +02:00

RDS Factor

Two-factor authentication for Remote Desktop Services (RDS).

RDS Factor consist of two components:

  • A server component that talks RADIUS with RD Web and the RD Gateway.
  • An updated version of the RD Web pages that interacts with the RADIUS server and an opt-in multi-factor form.

RDS Factor works by sending an SMS to users -- after they authenticate with username / password -- which when entered allow them entrance to RD Web. When users click on an applicaiton in RD Web a window is opened in the gateway for that user. In that way, users that are not authenticated via RD Web can't get access through RD Gateway. Compare this to the standard RDS setup, where there is no way to share state between RD Web and RD Gateway, meaning that the gateway is always open for user / password only authentication.

It is also possible to disable two factor authentication in RDS Factor. In this case, RDS Factor still maintains state between RD Web and RD Gateway, ensuring that users have logged into RD Web before connections are allowed through the gateway. That means custom multi-factor authenticators can be put in front of RD Web and also protect the gateway.

Tested on Windows 2012 R2.

Prerequisites

An RDS setup. There are many options for orchestrating the RDS setup; the minimal RDS setup for use with RDS Factor consist of two servers:

  • Active Directory; and
  • RDS with Gateway component enabled

Installation

The core RADIUS server is included in this project as a git submodule. Fetch it by:

C:\RDSFactor> git submodule update --init

RD Web update

RDS factor comes with a customized version of the RD Web pages. To install these run:

C:\RDSFactor> install-web.bat

After install go and configure the application in IIS. RDWeb -> Pages -> Application Settings. You should configure the following settings:

  • RadiusServer IP of the radius server
  • RadiusSecret Shared secret -- of your own chosing -- used for encrypting RADIUS traffic

RADIUS server installation

The RADIUS server component can be installed on any server reacheable by both the RD Web and the RD Gateway. To install the server as a service run:

C:\RDSFactor> install-server.bat

After install go and configure the server. Open the file RDSFactor/server/bin/release/conf.ini for editing. You should configure the following settings:

  • LDAPDomain IP of LDAP server to authenticate user and lookup phonenumber against
  • ADField LDAP attribute to use for looking up the user's phonenumber
  • Debug Enable debug output to RDSFactor/server/bin/release/log.txt
  • {client}={shared secret} IP of RD Web and shared secret -- same as RadiusSecret-- for encryption
  • Provider URL of SMS provider. RDS Factor inserts the number and a message in the two variable, ***NUMBER*** and ***TEXTMESSAGE***, in the provider URL. An example URL using the SMS gateway cpsms: https://www.cpsms.dk/sms/?username=myuser&password=mypassword&recipient=NUMBER&message=TEXTMESSAGE&from=CPSMS

To reload the configuration restart the RADIUS server service by running

C:\RDSFactor> restart-server.bat

Acknowledgements

  • Claus Isager - for the first Open Source two factor RDS authenticator; which this project is based upon.
  • Nikolay Semov - for the core RADIUS server

License

RDS Factor is an open source project, sponsored by Origo Systems A/S, under the GNU general public license version 3.