Sitemap

An Overview of How to Integrate 2FA in a VPN Gateway with iDaaS and Active Directory

6 min readMar 4, 2021

By Victor Mak, Alibaba Cloud Solution Architect

Alibaba Cloud Identity as a Service (IDaaS) is a centralized platform that provides management over identities, permissions, and applications for enterprise users. You can use this service to integrate and manage identities in your office administration system, business system, and third-party SaaS systems deployed on-premises or on the cloud. This way, you can access all applications and services with one account.

This article gives step-by-step directions about setting up a VPN Gateway with iDaaS and Active Directory. The following figure illustrates the integration architecture:

Press enter or click to view image in full size

Prerequisites

Before you begin, make sure:

In this tutorial, we will use 47.242.57.11 as the backend and 47.242.34.49 as the Active Directory:

Press enter or click to view image in full size

Procedure

  1. Enable iDaaS and integrate with Active Directory
  2. Sync up the Active Directory account to iDaaS
  3. Configure VPN Gateway with SSLVPN and enable 2FA with iDaaS
  4. Verify the results

Enable iDaaS and Integrate It with the Active Directory

Follow these steps to enable iDaaS in the iDaaS console and integrate with the Active Directory:

1. Log on to the Alibaba Cloud iDaaS console and click Purchase Standard edition:

Press enter or click to view image in full size

2. Since iDaaS is now in a public preview, click Buy Now and Purchase to enable iDaaS:

Press enter or click to view image in full size
Press enter or click to view image in full size

3. Once the iDaaS instance is ready, you can click Manage in the iDaaS console:

Press enter or click to view image in full size

4. Navigate to Authentication Sources under Authentication, find LDAP, and click Add Authentication Source:

Press enter or click to view image in full size

5. Fill in the LDAP information:

  • Set the LDAP URL to the Public IP address and port number of the AD domain
  • Set the LDAP Base, LDAP Account, and LDAP account password to the values of AD
  • Set the Filter Condition to (sAMAccountName=$username$)
  • Select the Update iDaaS Password to update the LDAP password in iDaaS

There is am LDAP configuration example shown below:

Press enter or click to view image in full size
Press enter or click to view image in full size

6. Make sure the LDAP status is switched ON:

Press enter or click to view image in full size

7. Navigate to Cloud Product AD Authentication under Security Settings, select AD Authentication Source, and switch to Enable. Then, click Save:

Press enter or click to view image in full size

Sync up the Active Directory Account to iDaaS

1. Navigate to Organizations and Groups under Users, click Configure LDAP, and Create on the right side to configure LDAP settings:

Press enter or click to view image in full size
Press enter or click to view image in full size

2. Fill in the LDAP server information on the Server Connection sheet:

  • Set the Server Address and Port Number to the Public IP address and *port number of the AD domain
  • Set the LDAP Base DN, Administrator DN, and password to the values of AD
  • Select Windows AD

There is a configuration example shown below:

Press enter or click to view image in full size

3. Click Test Connection to verify connectivity between iDaaS and AD:

Press enter or click to view image in full size

4. Switch to Field Matching Rules, follow the instructions, fill in the necessary information, and click Save. There is a configure LDAP sample shown below:

Press enter or click to view image in full size

5. Navigate to Account under Import. Click import and OK to import the account to iDaaS:

Press enter or click to view image in full size
Press enter or click to view image in full size

6. A list of accounts is ready to import to iDaaS; select Confirm Import:

Press enter or click to view image in full size

Configure the VPN Gateway with SSLVPN and Enable 2FA with iDaaS

1. Log on to the Alibaba Cloud VPN Gateway console and click Create VPN Gateway:

Press enter or click to view image in full size

2. Select the Region, VPC, and vswitch where you want the VPN Gateway to be created. Make sure SSL-VPN Enable is selected, and then click Buy Now:

Press enter or click to view image in full size

3. Navigate to SSL Servers and click Create SSL Server:

Press enter or click to view image in full size

4. Fill in the value of the SSL Server name, VPN Gateway, Local Network, and Client Subnet, and then enable Advanced Configuration:

Press enter or click to view image in full size

5. Enable Two-factor Authentication and select IDaaS Instance. You need to grant permissions to access iDaaS:

Press enter or click to view image in full size
Press enter or click to view image in full size

6. After permission is granted, you can select iDaaS:

Press enter or click to view image in full size

7. Navigate to SSL Clients under VPN and click Create Client Certificate:

Press enter or click to view image in full size

8. Fill in the Name and select SSL Server. Then, click OK:

Press enter or click to view image in full size

9. Download the Client Certificate. Now, you are ready to test the SSLVPN with the Active Directory account login via iDaaS:

Press enter or click to view image in full size

Verify the Results

1. Depending on which operating system you are using, you will need to download and install the VPN software that supports the OpenVPN protocol. Double check the .ovpn file to connect to the Alibaba Cloud VPN Gateway:

Press enter or click to view image in full size

2. The VPN software will require a login before it establishes the VPN connection. Fill in the Active Directory username and password and click OK:

Press enter or click to view image in full size

3. Now, you can access backend server using SSH with a private IP address:

Press enter or click to view image in full size

Original Source:

--

--

Alibaba Cloud
Alibaba Cloud

Written by Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

No responses yet