NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
115 stars 73 forks source link

Bypass Auth on specific map #344

Closed ChenrySecmon closed 1 year ago

ChenrySecmon commented 1 year ago

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=]". 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!

ChenrySecmon commented 1 year ago

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=