Project

General

Profile

Bug #6999

ntopng missing preferences menu

Added by Kill Bill 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
ntop
Target version:
Start date:
12/10/2016
Due date:
% Done:

100%

Affected version:
All
Affected Architecture:
All

Description

This is caused by the admin user not being a member of "administrator" group. Related forum thread: https://forum.pfsense.org/index.php?topic=121067.0

History

#1 Updated by Kill Bill 10 months ago

Unable to submit anything via GitHub (server error 500 since yesterday). If it works for someone:

--- a/src/usr/local/pkg/ntopng.inc    2016-11-28 14:15:00.000000000 +0100
+++ b/src/usr/local/pkg/ntopng.inc    2016-12-09 22:46:37.000000000 +0100
@@ -208,6 +208,8 @@ function ntopng_set_redis_password() {
         $password = md5($ntopng_config['redis_password']);
         if (ntopng_redis_started()) {
             mwexec("{$redis_path}/redis-cli SET ntopng.user.admin.password " . escapeshellarg($password));
+            // Make sure the preferences menu is accessible (Bug #6999)
+            mwexec("{$redis_path}/redis-cli SET ntopng.user.admin.group administrator");
             mwexec("{$redis_path}/redis-cli save");
         } else {
             log_error(gettext("[ntopng] Cannot set admin password - redis-server is not running."));

#3 Updated by Renato Botelho 9 months ago

  • Status changed from New to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.4.0
  • % Done changed from 0 to 100

PR has been merged, thanks!

#4 Updated by Kill Bill 9 months ago

Works.

#5 Updated by Renato Botelho 9 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF