mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/freeradius: Add logging support (#422)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= freeradius
|
||||
PLUGIN_VERSION= 1.3.1
|
||||
PLUGIN_VERSION= 1.4.0
|
||||
PLUGIN_COMMENT= RADIUS Authentication, Authorization and Accounting Server
|
||||
PLUGIN_DEPENDS= freeradius3
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<User url="/ui/freeradius/user/index" order="20"/>
|
||||
<Client url="/ui/freeradius/client/index" order="30"/>
|
||||
<EAP url="/ui/freeradius/eap/index" order="40"/>
|
||||
<LogFile VisibleName="Log File" order="80" url="/diag_logs_freeradius.php"/>
|
||||
</FreeRADIUS>
|
||||
</Services>
|
||||
</menu>
|
||||
|
||||
@@ -3,8 +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 }}"{% if user_list.sessionlimit_max_session_limit is defined %}, Max-Daily-Session := {{ user_list.sessionlimit_max_session_limit }}
|
||||
{% endif %}
|
||||
{{ 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 %},
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$logfile = '/var/log/radius.log';
|
||||
$logclog = false;
|
||||
require_once 'diag_logs_template.inc';
|
||||
Reference in New Issue
Block a user