PAM RADIUS - Implementation Guide
PAM RADIUS - Implementation Guide
DualShield
for
PAM RADIUS
Implementation Guide
(Version 5.4)
Copyright 2012
Deepnet Security Limited
Trademarks
Copyrights
Under the international copyright law, neither the Deepnet Security software or
documentation may be copied, reproduced, translated or reduced to any electronic
medium or machine readable form, in whole or in part, without the prior written consent
of Deepnet Security.
Licence Conditions
Please read your licence agreement with Deepnet carefully and make sure you
understand the exact terms of usage. In particular, for which projects, on which
platforms and at which sites, you are allowed to use the product. You are not allowed to
make any modifications to the product. If you feel the need for any modifications, please
contact Deepnet Security.
Disclaimer
This document could include technical inaccuracies or typographical errors. Changes are
periodically made to the information herein; these changes will be incorporated in new
editions of the document. Deepnet Security may make improvements of and/or changes
to the product described in this document at any time.
Contact
If you wish to obtain further information on this product or any other Deepnet Security
products, you are always welcome to contact us.
Table of Contents
Overview ......................................................................................... 4
RedHat Fedora - CentOS ................................................................. 5
Installation ........................................................................................................ 5
Configuration ..................................................................................................... 5
Ubuntu ............................................................................................ 6
Installation ........................................................................................................ 6
Configuration ..................................................................................................... 6
Overview
DualShield can be easily added to any Linux and Unix system to protect remote or local
logins with two-factor authentication via the PAM RADIUS module. Due to the limitations
in RADIUS authentication protocol, only one-time password (OTP) based authentication
methods are supported.
DualShield provides a wide selection of portable OTP tokens in a variety of form factors,
ranging from hardware tokens, software tokens, mobile tokens to USB tokens. These
include:
Deepnet SafeID
Deepnet MobileID
Deepnet GridID
Deepnet CryptoKey
RSA SecurID
VASCO DigiPass Go
OATH-compliant OTP tokens
For the general instructions of installation and configuration of the DualShield RADIUS
Server, please refer to the following documents:
Installation
To install the PAM RADIUS module on RedHat, Fedora or CentOS, run the command
below:
Configuration
Once the PAM RADIUS module has been successfully installed, you will need to edit the
file: /etc/pam_radius.conf
$ sudo vi /etc/pam_radius.conf
other-server other-secret 3
Now, the configuration of the PAM RADIUS module is done. To enable the module for an
application, you need to edit the configuration file in the /etc/pam.d directory. For
examples, to protect the GDM (GNOME Display Manager) GUI login, you need to edit the
file /etc/pam.d/gdm-password. To protect the SSH login, you need to edit the file
/etc/pam.d/sshd.
i.e.
Ubuntu
Installation
To install the PAM RADIUS module on Ubuntu, run the command below:
Configuration
Once the PAM RADIUS module has been successfully installed, you will need to edit the
file: /etc/pam_radius_auth.conf
Now, the configuration of the PAM RADIUS module is done. To enable the module for an
application, you need to edit the configuration file in the /etc/pam.d directory. For
examples, to protect the GDM (GNOME Display Manager) GUI login, you need to edit the
file /etc/pam.d/gdm-password. To protect the SSH login, you need to edit the file
/etc/pam.d/sshd.
i.e.
1. Download
2. Build
$ cd pam_radius-1.3.17
$ make
3. Install
4. Configuration
The configuration of the PAM RADIUS module is similar on all Linux distributions.
Please refer to previous examples.
Troubleshooting
1. If SELinux is enforced, with some old selinux versions, when you enable
pam_radius_auth for SSH login, selinux may block the sshd from binding udp port.
To work around it:
https://bugzilla.redhat.com/show_bug.cgi?id=647043
policy_module(mysshd, 1.0)
gen_require(`
type sshd_t;
')
corenet_udp_bind_all_unreserved_ports(sshd_t)
$ make -f /usr/share/selinux/devel/Makefile
$ semodule -i mysshd.pp
or
3. You can also enable the debug log for pam_radius_auto.so, for example: