mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Rework authentication preference to support RADIUS and HTTP auths
This commit is contained in:
parent
a34fa816b2
commit
0bd433c5c5
7 changed files with 192 additions and 45 deletions
|
|
@ -10,9 +10,18 @@ local info = ntop.getInfo(false)
|
|||
-- This table is used both to control access to the preferences and to filter preferences results
|
||||
local menu_subpages = {
|
||||
{id="auth", label=i18n("prefs.user_authentication"), advanced=false, pro_only=true, nedge_hidden=true, hidden=false, entries={
|
||||
multiple_ldap_authentication = {
|
||||
title = i18n("prefs.multiple_ldap_authentication_title"),
|
||||
description = i18n("prefs.multiple_ldap_authentication_description"),
|
||||
toggle_ldap_auth = {
|
||||
title = i18n("prefs.toggle_ldap_auth"),
|
||||
description = i18n("prefs.toggle_ldap_auth_descr"),
|
||||
}, toggle_radius_auth = {
|
||||
title = i18n("prefs.toggle_radius_auth"),
|
||||
description = i18n("prefs.toggle_radius_auth_descr", {product=info.product}),
|
||||
}, toggle_http_auth = {
|
||||
title = i18n("prefs.toggle_http_auth"),
|
||||
description = i18n("prefs.toggle_http_auth_descr"),
|
||||
}, toggle_local_auth = {
|
||||
title = i18n("prefs.toggle_local_auth"),
|
||||
description = i18n("prefs.toggle_local_auth_descr", {product=info.product}),
|
||||
}, multiple_ldap_account_type = {
|
||||
title = i18n("prefs.multiple_ldap_account_type_title"),
|
||||
description = i18n("prefs.multiple_ldap_account_type_description"),
|
||||
|
|
@ -37,6 +46,18 @@ local menu_subpages = {
|
|||
}, toggle_ldap_anonymous_bind = {
|
||||
title = i18n("prefs.toggle_ldap_anonymous_bind_title"),
|
||||
description = i18n("prefs.toggle_ldap_anonymous_bind_description"),
|
||||
}, radius_server = {
|
||||
title = i18n("prefs.radius_server_title"),
|
||||
description = i18n("prefs.radius_server_description", {example="127.0.0.1:1812"}),
|
||||
}, radius_secret = {
|
||||
title = i18n("prefs.radius_secret_title"),
|
||||
description = i18n("prefs.radius_secret_descroption"),
|
||||
}, radius_admin_group = {
|
||||
title = i18n("prefs.radius_admin_group_title"),
|
||||
description = i18n("prefs.radius_admin_group_description"),
|
||||
}, http_auth_server = {
|
||||
title = i18n("prefs.http_auth_server_title"),
|
||||
description = i18n("prefs.http_auth_server_description"),
|
||||
},
|
||||
}}, {id="ifaces", label=i18n("prefs.network_interfaces"), advanced=true, pro_only=false, hidden=false, nedge_hidden=true, entries={
|
||||
dynamic_interfaces_creation = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue