net/freeradius: Fix users file for CP accounting (#404)

This commit is contained in:
Michael
2017-11-29 13:04:36 +01:00
committed by Franco Fichtner
parent 75ca6c01f8
commit 18e4e8d629
@@ -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 %}