diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-11-29 15:26:16 +0100 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-29 14:37:45 -0200 |
commit | 6e6235801776e3c66f85cd1aea3c5e13e4debeee (patch) | |
tree | cf21d9ce7c5c7484f3d54b0eadcd6372d5229662 /src/usr/local/www/widgets | |
parent | 7b861bce838ffed0c7e652e27a2f926f07a7af1f (diff) | |
download | pfsense-6e6235801776e3c66f85cd1aea3c5e13e4debeee.zip pfsense-6e6235801776e3c66f85cd1aea3c5e13e4debeee.tar.gz |
Captive portal: use "Admin Reset" as termination cause when disconnecting a user from admin UI
When a user is disconnected by the administrator using the pfSense captive portal status page or widget set the value of the Acct-Terminate-Cause in the RADIUS accounting stop packet to "Admin Reset" (6) as per RFC 2866.
(cherry picked from commit 2a119ed3cbf6bd4bc438e5b1993bd4c55c2663c6)
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/captive_portal_status.widget.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php index 95460c0..2146be8 100644 --- a/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php +++ b/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php @@ -80,7 +80,7 @@ if (isset($cpzone) && !empty($cpzone) && isset($a_cp[$cpzone]['zoneid'])) { } if (($_GET['act'] == "del") && !empty($cpzone) && isset($cpzoneid)) { - captiveportal_disconnect_client($_GET['id']); + captiveportal_disconnect_client($_GET['id'], 6); } unset($cpzone); |