mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/freeradius: Fix users file for CP accounting (#404)
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
{% if helpers.exists('OPNsense.freeradius.user.users.user') %}
|
||||
{% for user_list in helpers.toList('OPNsense.freeradius.user.users.user') %}
|
||||
{% if user_list.enabled == '1' %}
|
||||
{{ user_list.username }} Cleartext-Password := "{{ user_list.password }}"
|
||||
{{ user_list.username }} Cleartext-Password := "{{ user_list.password }}"{% if user_list.sessionlimit_max_session_limit is defined %}, Max-Daily-Session := {{ user_list.sessionlimit_max_session_limit }}
|
||||
{% endif %}
|
||||
Framed-Protocol = PPP{% if user_list.ip is defined %},
|
||||
Framed-IP-Address = {{ user_list.ip }}{% endif %}{% if user_list.subnet is defined %},
|
||||
Framed-IP-Netmask = {{ user_list.subnet }}{% endif %}{% if user_list.vlan is defined %},
|
||||
@@ -15,8 +16,7 @@
|
||||
WISPr-Bandwidth-Min-Down = {{ user_list.wispr_bw_min_down }}{% endif %}{% if user_list.wispr_bw_max_down is defined %},
|
||||
WISPr-Bandwidth-Max-Down = {{ user_list.wispr_bw_max_down }}{% endif %}{% if user_list.chillispot_bw_max_up is defined %},
|
||||
ChilliSpot-Bandwidth-Max-Up = {{ user_list.chillispot_bw_max_up }}{% endif %}{% if user_list.chillispot_bw_max_down is defined %},
|
||||
ChilliSpot-Bandwidth-Max-Down = {{ user_list.chillispot_bw_max_down }}{% endif %}{% if user_list.sessionlimit_max_session_limit is defined %},
|
||||
Max-Daily-Session := {{ user_list.sessionlimit_max_session_limit }}
|
||||
ChilliSpot-Bandwidth-Max-Down = {{ user_list.chillispot_bw_max_down }}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user