mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add trace http auth events on log file. (#7434)
This commit is contained in:
parent
f5807dadd3
commit
9282581f3f
6 changed files with 59 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ local auth_toggles = {
|
|||
["local"] = "toggle_local_auth",
|
||||
["ldap"] = "toggle_ldap_auth",
|
||||
["http"] = "toggle_http_auth",
|
||||
["authentication_log"] = "toggle_http_auth_log",
|
||||
["radius"] = "toggle_radius_auth",
|
||||
["menu_entries"] = {
|
||||
["help"] = "toggle_menu_entry_help",
|
||||
|
|
@ -990,6 +991,13 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
default = "0",
|
||||
to_switch = elementToSwitch
|
||||
})
|
||||
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "http_auth_server_log",
|
||||
pref = "http_authenticator.log_positive_event_enabled",
|
||||
default = "0"
|
||||
})
|
||||
|
||||
local showElements = (ntop.getPref("ntopng.prefs.http_authenticator.auth_enabled") == "1")
|
||||
|
||||
|
|
@ -1003,6 +1011,20 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
pattern = getURLPattern()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
local showElements = (ntop.getPref("ntopng.prefs.http_authenticator.log_positive_event_enabled") == "1")
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["http_auth_server_log"].title,
|
||||
subpage_active.entries["http_auth_server_log"].description, "ntopng.prefs.http_authenticator.log_positive_event_enabled", "http_auth_url",
|
||||
"", nil, showElements, true, true --[[ allowUrls ]] , {
|
||||
attributes = {
|
||||
spellcheck = "false",
|
||||
maxlength = 255,
|
||||
required = "required",
|
||||
pattern = getURLPattern()
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- #####################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue