9.0.0 8.3.0 8.2.0-8.2.1 8.1.0-8.1.1 8.0.0-8.0.3 7.4.0-7.4.6 7.3.0-7.3.2 7.2.0-7.2.1 7.1.0-7.1.2 7.0.0-7.0.2 6.1.0-6.1.2 View All PV Cloud PV Local Installs
Auto Light Dark
Auto Light Dark
9.0.0 8.3.0 8.2.0-8.2.1 8.1.0-8.1.1 8.0.0-8.0.3 7.4.0-7.4.6 7.3.0-7.3.2 7.2.0-7.2.1 7.1.0-7.1.2 7.0.0-7.0.2 6.1.0-6.1.2 View All PV Cloud PV Local Installs

RADIUS Authentication

8.1.0 Admin Auth Radius Server Empty New.jpeg

ProVision supports vendor-specific attributes (VSAs) for use with RADIUS authentication.

To use these attributes, you must perform the following procedures:

Setting Up Radius Authentication

Add the VSA to the Radius Installation

To use the VSA, the attributes must be defined on the RADIUS server. Add the following RADIUS dictionary file to your RADIUS server and name it dictionary.6connect:

VENDOR 6connect 36009

BEGIN-VENDOR 6connect

ATTRIBUTE 6connect_user_group 10 string
#A 6connect User Group to which this user belongs.

END-VENDOR 6connect

Make sure to add the following to the primary dictionary file:  $INCLUDE dictionary.6connect

Configure Radius Accounts

On the Radius server, configure the user accounts that will have access to the ProVision system.

An example of a ProVision account configuration for the user file on a Freeradius system for ProVision is below:

Example 

To add a new radius user, edit the 'users' file found at /etc/raddb/users and add a block like:

PowerShell
username Cleartext-Password := "somepass"
6connect_user_group = "Global Admins,Group 2,Group 1,Group Nonexistant"

The Radius server must be restarted every time you add, remove, or modify users. To restart the Radius server, use this command:

PowerShell
/etc/init.d/radiusd restart

Note on RADIUS attributes

There are many Radius attributes, but '6connect_user_group' is the one used by ProVision. It is a comma-separated list of all the group names that the user belongs to.

Test Radius Accounts

To query a radius server, use the following command format:

PowerShell
radtest [USERNAME] [USERPASSWORD] [SERVER] 0 [SECRET]

Example

PowerShell
radtest username somepass 198.51.100.0 0 6connect

A successful response will look like this:

PowerShell
Sending Access-Request of id 198 to 198.51.100.0 port 1812
User-Name = "username"
User-Password = "somepass"
NAS-IP-Address = 67.221.240.229
NAS-Port = 0
Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Accept packet from host 198.51.100.0 port 1812, id=198, length=69
Attr-10 = 0x476c6f62616c2041646d696e732c47726f757020322c47726f757020312c47726f7570204e6f6e6578697374616e74

A rejected response may look like this:

PowerShell
Sending Access-Request of id 68 to 198.51.100.0 port 1812
User-Name = "usernamebro"
User-Password = "somepass"
NAS-IP-Address = 67.221.240.229
NAS-Port = 0
Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Reject packet from host 198.51.100.0 port 1812, id=68, length=20

Configure ProVision for Radius Authentication

To configure the use of Radius authentication with ProVision, follow the steps below:

  1. Log into ProVision

  2. Go to Settings → Admin -> Authentication

  3. Select the Radius tab under Authentication Options.

  4. Ensure that Radius functions are available.  Radius functions are always available on cloud instances. 

    1. Note: Radius functions are available on VM Images and Local Installations only if the relevant PHP Pear Radius Libraries have been installed. An error message will be visible if the PHP extension is not installed.

  5. Move the Radius Enable selector to the ON position.

  6. Enter or update the desired Radius server(s) and settings.

Add or Update Radius Authentication Settings

Authentication options are accessed by clicking the Authentication sub-tab at the top of the Admin Settings page.

8.1.0 Admin Auth Radius Server Empty New.jpeg

Radius Settings:

  • Radius Enable: Check this box to enable RADIUS functionality.

  • Radius Server Address: Set to the IP address of your radius server. If this is specified, it will force authentication over radius.

  • Radius Authentication Port: Set to the port for authentication. Default port is 1812

  • Radius Accounting Port: Set to the port for radius accounting. Default port is 1813

  • Radius Key: Set to the shared key of your radius server

  • Radius Retries: Set the number of retries to attempt.

  • Radius Timeout: The time (in seconds) to wait for the Radius server to reply before retransmitting the request.

To verify the settings connect, click Test Radius Configuration. When done, click Save Changes.

If desired, you may repeat to add additional Radius servers:

Adding a Secondary Radius Server

Add a Secondary Radius Server

After the first Radius server is added to ProVision, and option to add an additional Radius server becomes available at the top of the Radius Authentication Options tab. To add a secondary Radius server, click Add new server.

8.x Admin Auth Radius Add New Server Circled.png


ProVision will try to connect to each radius server listed in the order listed, until a success is returned. Disabled servers will display in grey, and the currently selected server will display in bold.

Setting default login options

In the login screen, you would select the authentication method from the dropdown. If you like, you can set the default login option in the following way:

Go to the /data/globals.php and open in vi (or other editor). Add in the following text as the last line of the file (before the closing ?>)

define('DEFAULT_LOGIN_TYPE', 'radius');

Acceptable values are "local", "radius" and "ldap". If this line is not present in globals.php, the default option is "local".