NagVis / nagvis

Visualization addon for your open source monitoring core

Home Page:http://nagvis.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bypass Auth on specific map

ChenrySecmon opened this issue · comments

Hello,
I am using NagVis with Centreon 23.04 on RHEL8. I am looking for a way to bypass NagVis authentication when accessing a specific map at "http://[/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=<MAP_NAME>]". I have tried modifying both /etc/httpd/conf.d/nagvis.conf and /etc/httpd/conf/httpd.conf, but I haven't had any success. I also attempted to use .htaccess and directly modify CoreAuthHandler.php.
If anyone has any ideas or has successfully accomplished this before, I would greatly appreciate it if you could share your insights!

Okay so I have found a solution for the problem but its a bit different from what I wanted. Instead of a bypass for a specific map, a bypass for an IP is much easier.
In /etc/httpd/conf/httpd.conf -> (CHANGE/ADD)

Options FollowSymLinks
AllowOverride none
Require all denied

<Directory /usr/share/nagvis>
Options FollowSymLinks
AllowOverride all
Require all granted

In /usr/share/nagvis -> touch .htaccess
nano .htaccess
SetEnvif Remote_Addr^X.X.X.X$ REMOTE_USER=