Project

General

Profile

Actions

Bug #6999

closed

ntopng missing preferences menu

Added by Kill Bill almost 8 years ago. Updated almost 8 years ago.

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

100%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
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

Actions #1

Updated by Kill Bill almost 8 years 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."));
Actions #3

Updated by Renato Botelho almost 8 years 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!

Actions #4

Updated by Kill Bill almost 8 years ago

Works.

Actions #5

Updated by Renato Botelho almost 8 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF