Added ldaps and admin group fields in ntopng preferences.

This commit is contained in:
valentina 2016-02-10 23:36:20 +01:00
parent 8458dc97b5
commit 885e808bdf
2 changed files with 9 additions and 6 deletions

View file

@ -156,6 +156,7 @@ function prefsInputFieldWithParamCheck(label, comment, pre_key, key, value, _inp
value = v
elseif (v_s ~= nil) then
-- fix for ldap preference
v_s = string.gsub(v_s, "ldaps:__", "ldaps://")
v_s = string.gsub(v_s, "ldap:__", "ldap://")
ntop.setCache(k, v_s)
value = v_s