Implements X.509 client authentication

This commit is contained in:
Simone Mainardi 2019-01-09 12:21:56 +01:00
parent 22e5e2e9e0
commit e9811ae688
10 changed files with 112 additions and 89 deletions

View file

@ -1087,11 +1087,11 @@ function printAuthentication()
local entries = subpage_active.entries
-- Note: order must correspond to evaluation order in Ntop.cpp
print('<tr><th class="info" colspan="2">'..i18n("prefs.https_auth")..'</th></tr>')
print('<tr><th class="info" colspan="2">'..i18n("prefs.client_x509_auth")..'</th></tr>')
prefsToggleButton(subpage_active,{
field = "toggle_https_auth",
field = "toggle_client_x509_auth",
default = "0",
pref = "is_https_auth",
pref = "is_client_x509_auth_enabled",
})
if not entries.toggle_ldap_auth.hidden then
printLdapAuth()