Linux PAM Integration with AuthPoint

Deployment Overview

This document describes how to set up multi-factor authentication (MFA) for Linux PAM with AuthPoint. Linux must already be configured and deployed before you set up MFA with AuthPoint.

Your Linux can be configured to support MFA in several modes. For this integration, we set up RADIUS authentication with AuthPoint. RADIUS authentication requires that you install the AuthPoint Gateway on your network, which functions as a RADIUS server.

This integration was tested with Ubuntu 16.04 LTS.

Linux PAM Authentication Data Flow with AuthPoint

AuthPoint communicates with various cloud-based services and service providers with the Radius protocol. This diagram shows the data flow of an MFA transaction for Linux.

Before You Begin

Before you begin these procedures, make sure that:

  • You have installed and configured the AuthPoint Gateway (see About Gateways)
  • End-users can log in to the Linux PAM
  • A token is assigned to a user in AuthPoint

Configure Ubuntu 16.04 LTS

  1. Log in to your Linux server as a root user.
  2. Type $ sudo apt-get install libpam-radius-auth libpam0g-dev gcc and press Enter to install PAM with Radius Authentication Module.
  3. Edit the /etc/ssh/sshd_config file to enable PAM authentication in ssh service. Make sure ChallengeResponseAuthentication yes and UserPAM yes are enabled and do not include a #.
  4. Edit the /etc/pam.d/sshd file and add the line auth sufficient in the beginning of the file to enable PAM with Radius in PAM module.
  5. Edit the /etc/pam_radius_auth.conf file and add a line that specifies the IP address of the RADIUS server (AuthPoint Gateway) and shared secret. The added line should be written as server:port SharedSecret timeout ( 123456 60).
  6. Add the configuration folder:
    1. Type $ sudo mkdir /etc/raddb and press Enter.
    2. Type $ sudo cp /etc/pam_radius_auth.conf /etc/raddb/server and press Enter.
  7. Type $ sudo service ssh restart and press Enter to restart the ssh service.

Configure AuthPoint

Before AuthPoint can receive Linux PAM authentication requests from Linux PAM, you must specify the Linux PAM client in AuthPoint. You must also assign the Linux PAM to the user group that will authenticate through Linux PAM.

Add a Radius Resource in AuthPoint

From the AuthPoint management UI:

  1. From the navigation menu, select Resources.
  2. From the Choose a Resource Type drop-down list, select RADIUS Client. Click Add Resource.

  1. Configure the settings for all options on the RADIUS page.

Add an Access Policy to AuthPoint

You must have at least one user group in AuthPoint for authentication with Linux PAM, and you must assign an access policy for the Linux PAM resource to that group. If you already have a group, you do not have to add another group.

In the AuthPoint management UI:

  1. From the navigation menu, select Groups.
  2. To add a new group, click Add Group. If you already have a group that you want to use, click the Name of your group to edit it.

  1. In the Name text box, type a descriptive name for the group.
  2. (Optional) In the Description text box, type a description of the group.

  1. In the Access Policy section, click Add Policy.

  1. In the Add Policy dialog box, from the Resource drop-down list, select the resource you want to add an access policy for.
  2. (Optional) To require that users type their password before they authenticate for this resource, select the Require Password Authentication toggle.
  3. Select the authentication options users in this group can choose from when they authenticate.

    For RADIUS resources, you can only choose OTP or Push. RADIUS resources cannot use the QR code authentication option.

  1. Click Add.
    The access policy for your resource is added to the list.

  1. Click Save.

Bind the RADIUS Resource to a Gateway

To use RADIUS authentication with AuthPoint, you must have the AuthPoint Gateway installed on your corporate network and you must assign your RADIUS resources to the Gateway in the AuthPoint web UI. The Gateway functions as a RADIUS server. For more information, see About Gateways.

  1. From the navigation menu, select Gateway.
  2. Select the Name of the Gateway.
  3. In the RADIUS section, in the Port text box, type the port number used to communicate with the Gateway. The default ports are 1812 and 1645.
  4. In the Select a RADIUS resource drop-down list, select your RADIUS client resource.
  5. Click Save.

Add Users to AuthPoint

Before you assign users to a group, you must add the users to AuthPoint. There are two ways to add AuthPoint user accounts:

  • Sync users from an external user database
  • Add local AuthPoint users

Each user must be a member of a group. You must add at least one group before you can add users to AuthPoint.

Test the Integration

To test the integration of AuthPoint and configuration of your Linux, you can authenticate with a mobile token on your mobile device. For RADIUS resources, you can choose one-time password (OTP) or push.

In this example, we show the push authentication method.

  1. In an SSH client, connect to Linux server.
  2. If required, type your AuthPoint password.
  3. Approve the authentication request that is sent to your mobile device.
    You are logged in to Linux.