mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/freeradius: add fallback Tunnel-Password field (#4983)
This commit is contained in:
@@ -152,4 +152,11 @@
|
||||
<advanced>true</advanced>
|
||||
<help>Fallback for proxy server. Default disabled.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.fallback_tunnel_password</id>
|
||||
<label>Fallback Tunnel password</label>
|
||||
<type>password</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Define the Fallback Tunnel-Password. Allowed characters are 0-9, a-z, A-Z, and ,._-!$%/()+#=: with up to 128 characters.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -152,5 +152,8 @@
|
||||
<Default>0</Default>
|
||||
<Required>Y</Required>
|
||||
</fallbackproxy>
|
||||
<fallback_tunnel_password type="TextField">
|
||||
<mask>/^([0-9a-zA-Z._\-\!\$\%\/\(\)\+\#\=\{\}:]){1,128}$/u</mask>
|
||||
</fallback_tunnel_password>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
@@ -113,12 +113,16 @@ DEFAULT Ldap-Group == "{{ ldapgroup_list.ldapgroupname }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.freeradius.general.fallbackvlan_enabled') and OPNsense.freeradius.general.fallbackvlan_enabled == '1' %}
|
||||
|
||||
{% if helpers.exists('OPNsense.freeradius.general.fallbackvlan_enabled') or helpers.exists('OPNsense.freeradius.general.fallback_tunnel_password') %}
|
||||
DEFAULT Auth-Type := Accept
|
||||
{% if helpers.exists('OPNsense.freeradius.general.fallbackvlan_enabled') and OPNsense.freeradius.general.fallbackvlan_enabled == '1' %}
|
||||
Tunnel-Type = VLAN,
|
||||
Tunnel-Medium-Type = IEEE-802,
|
||||
Tunnel-Private-Group-Id = {{ OPNsense.freeradius.general.fallbackvlan_id }},
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.freeradius.general.fallback_tunnel_password') %}
|
||||
Tunnel-Password = {{ OPNsense.freeradius.general.fallback_tunnel_password }},
|
||||
{% endif %}
|
||||
Framed-Protocol = PPP
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user