| 1 |
Radius as Second Factor |
| 2 |
======================= |
| 3 |
|
| 4 |
Some proprietary, OTP-based second factor implementations expose a |
| 5 |
Radius server that allow an authenticating application (such as |
| 6 |
LemonLDAP::NG) to verify the validity of an OTP using the standard |
| 7 |
Radius protocol. |
| 8 |
|
| 9 |
|
| 10 |
.. tip:: |
| 11 |
|
| 12 |
This page is about using Radius to connect to an external 2FA |
| 13 |
system for the *second factor only*. If your 2FA system works by |
| 14 |
concatenating the user's password and their OTP (LinOTP), you should |
| 15 |
probably be using :doc:`regular Radius authentication<authradius>` |
| 16 |
instead |
| 17 |
|
| 18 |
After choosing the Radius second factor type, the user is prompted with |
| 19 |
a code that will be checked against the Radius server. |
| 20 |
|
| 21 |
Prerequisites and dependencies |
| 22 |
------------------------------ |
| 23 |
|
| 24 |
This feature uses ``Authen::Radius``. Before enable it, on Debian you |
| 25 |
must install it : |
| 26 |
|
| 27 |
For CentOS/RHEL: |
| 28 |
|
| 29 |
.. code-block:: shell |
| 30 |
|
| 31 |
yum install perl-Authen-Radius |
| 32 |
|
| 33 |
In Debian/Ubuntu, install the library through apt command |
| 34 |
|
| 35 |
.. code-block:: shell |
| 36 |
|
| 37 |
apt install libauthen-radius-perl |
| 38 |
|
| 39 |
Configuration |
| 40 |
------------- |
| 41 |
|
| 42 |
.. _configuration-1: |
| 43 |
|
| 44 |
Configuration |
| 45 |
~~~~~~~~~~~~~ |
| 46 |
|
| 47 |
All parameters are configured in "General Parameters » Second factors » |
| 48 |
Mail second factor". |
| 49 |
|
| 50 |
- **Activation**: Set to ``On`` to activate this module, or use a |
| 51 |
specific rule to select which users may use this type of second |
| 52 |
factor |
| 53 |
- **Server hostname**: The hostname of the Radius server. Since 2.17 you can specify multiple servers, separated by spaces, for failover. |
| 54 |
- **Shared secret**: The secret key shared with the Radius server |
| 55 |
- **Session key containing login** (Optional): When verifying the OTP |
| 56 |
code against the Radius server, use this attribute as the login and |
| 57 |
the OTP code as password. By default, the attribute designated as |
| 58 |
``whatToTrace`` is used. |
| 59 |
- **Authentication timeout** (Optional): Allowed time to perform authentication |
| 60 |
- **Authenticate Radius requests**: Use the Message-Authenticator attribute to |
| 61 |
protect requests. |
| 62 |
- **Dictionary**: radius dictionary file ex: /usr/share/freeradius/dictionary |
| 63 |
This is mandatory if you want to send extra request attributes. |
| 64 |
- **Request attributes**: a list of additional Radius attributes to send with |
| 65 |
the Access Request. Key is the radius attribute name in the provided |
| 66 |
dictionary, value is a perl expression used to populate the attribute value. |
| 67 |
- **Add login validation call**: If enabled, send an Access-Request to the |
| 68 |
Radius server with only the User-Name attribute and no User-Password before |
| 69 |
displaying the OTP form. This can be used by some Radius implementations to |
| 70 |
trigger the delivery of the OTP to the user. |
| 71 |
- **Authentication level** (Optional): if you want to overwrite the |
| 72 |
value sent by your authentication module, you can define here the new |
| 73 |
authentication level. Example: 5 |
| 74 |
- **Label** (Optional): label that should be displayed to the user on |
| 75 |
the choice screen |
| 76 |
- **Logo** (Optional): logo file *(in static/<skin> directory)* |
| 77 |
|
| 78 |
Vendor specific |
| 79 |
~~~~~~~~~~~~~~~ |
| 80 |
|
| 81 |
Some configuration examples for specific vendors: |
| 82 |
|
| 83 |
.. toctree:: |
| 84 |
:maxdepth: 1 |
| 85 |
|
| 86 |
radius2f-inwebo |