Add RADIUS accounting pref in nEdge (ntopng.prefs.radius.accounting_enabled)

This commit is contained in:
Alfredo Cardigliano 2023-04-03 10:19:17 +02:00
parent b7984470a3
commit 88e2b8b101
4 changed files with 41 additions and 13 deletions

View file

@ -2043,6 +2043,7 @@ local known_parameters = {
["toggle_influx_auth"] = validateBool,
["toggle_ldap_auth"] = validateBool,
["toggle_local_auth"] = validateBool,
["toggle_radius_accounting"] = validateBool,
["toggle_radius_auth"] = validateBool,
["toggle_http_auth"] = validateBool,
["toggle_ldap_referrals"] = validateBool,

View file

@ -35,6 +35,10 @@ local menu_subpages = {
title = i18n("prefs.toggle_ldap_auth"),
description = i18n("prefs.toggle_ldap_auth_descr"),
hidden = (not hasLdap),
}, toggle_radius_accounting = {
title = i18n("prefs.toggle_radius_accounting"),
description = i18n("prefs.toggle_radius_accounting_descr", {product=info.product}),
hidden = (not hasRadius or not have_nedge),
}, toggle_radius_auth = {
title = i18n("prefs.toggle_radius_auth"),
description = i18n("prefs.toggle_radius_auth_descr", {product=info.product}),