mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/freeradius: add Service-Type (#1465)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= freeradius
|
||||
PLUGIN_VERSION= 1.9.3
|
||||
PLUGIN_VERSION= 1.9.4
|
||||
PLUGIN_COMMENT= RADIUS Authentication, Authorization and Accounting Server
|
||||
PLUGIN_DEPENDS= freeradius3
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -15,6 +15,10 @@ The server is fast, feature-rich, modular, and scalable.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.9.4
|
||||
|
||||
* Add Service-Type to user form
|
||||
|
||||
1.9.0
|
||||
|
||||
* Add DHCP support, serving only for DHCP relays
|
||||
|
||||
+7
@@ -123,4 +123,11 @@
|
||||
<type>text</type>
|
||||
<help>Set the maximum session limit in seconds. This can be used by the Captive Portal.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>user.servicetype</id>
|
||||
<label>Service Type</label>
|
||||
<type>select_multiple</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Set the Service-Type attributes for this user.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -76,6 +76,31 @@
|
||||
<sessionlimit_max_session_limit type="IntegerField">
|
||||
<Required>N</Required>
|
||||
</sessionlimit_max_session_limit>
|
||||
<servicetype type="OptionField">
|
||||
<Required>N</Required>
|
||||
<multiple>Y</multiple>
|
||||
<OptionValues>
|
||||
<Option1 value="1">1</Option1>
|
||||
<Option2 value="2">2</Option2>
|
||||
<Option3 value="3">3</Option3>
|
||||
<Option4 value="4">4</Option4>
|
||||
<Option5 value="5">5</Option5>
|
||||
<Option6 value="6">6</Option6>
|
||||
<Option7 value="7">7</Option7>
|
||||
<Option8 value="8">8</Option8>
|
||||
<Option9 value="9">9</Option9>
|
||||
<Option10 value="10">10</Option10>
|
||||
<Option11 value="11">11</Option11>
|
||||
<Option12 value="12">12</Option12>
|
||||
<Option13 value="13">13</Option13>
|
||||
<Option14 value="14">14</Option14>
|
||||
<Option15 value="15">15</Option15>
|
||||
<Option16 value="16">16</Option16>
|
||||
<Option17 value="17">17</Option17>
|
||||
<Option18 value="18">18</Option18>
|
||||
<Option19 value="19">19</Option19>
|
||||
</OptionValues>
|
||||
</servicetype>
|
||||
</user>
|
||||
</users>
|
||||
</items>
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
{% if user_list.ip6 is defined %}
|
||||
Framed-IPv6-Address = {{ user_list.ip6 }},
|
||||
{% endif %}
|
||||
{% if user_list.servicetype is defined %}
|
||||
{% for servicelist in user_list.servicetype.split(',') %}
|
||||
Service-Type = {{ servicelist }},
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.freeradius.general.vlanassign') and OPNsense.freeradius.general.vlanassign == '1' %}
|
||||
{% if user_list.vlan is defined %}
|
||||
Tunnel-Type = VLAN,
|
||||
|
||||
Reference in New Issue
Block a user