You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm Using Nagios Core 4.4.14 on the red hat 7.9 linux system
I defined a contact HO27720 and
I have configured user authentication by LDAP (windows env)
The user can see all nagios monitored host
I'm able to authenticate the user HO27720 by LDAP and see all
In the conf file of the nagios http site file I have configured the rules to Upper the user name so I expect
to see the same data when I make LDAP connection by the user ho27720 (lower case)
The authentication works but I CAN'T see anythig
nagios,conf
Rule to convert to Uppercase REMOTE_USER
RewriteMap toUppercase int:toupper
RewriteEngine On
RewriteCond %{LA-U:REMOTE_USER} .
RewriteRule ^.* - [E=REMOTE_USER:${toUppercase:%{LA-U:REMOTE_USER}}]
#SET the environment VAR to uppercase
SetEnvIf Remote_Username "(.*)" REMOTE_USER=1
CustomLog /var/log/httpd/access_log combined
LogFormat "%h %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" "%{REMOTE_USER}e"" combined
LDAP is case in-sensitive, Nagios username is case sensitive. This is the heart of the issue.
It seems like you were hoping your rewrite rule would effectively make Nagios username case in-sensitive on your system as well, but it seems not to have done so.
Hi
I'm Using Nagios Core 4.4.14 on the red hat 7.9 linux system
I defined a contact HO27720 and
I have configured user authentication by LDAP (windows env)
The user can see all nagios monitored host
I'm able to authenticate the user HO27720 by LDAP and see all
In the conf file of the nagios http site file I have configured the rules to Upper the user name so I expect
to see the same data when I make LDAP connection by the user ho27720 (lower case)
The authentication works but I CAN'T see anythig
nagios,conf
Rule to convert to Uppercase REMOTE_USER
RewriteMap toUppercase int:toupper
RewriteEngine On
RewriteCond %{LA-U:REMOTE_USER} .
RewriteRule ^.* - [E=REMOTE_USER:${toUppercase:%{LA-U:REMOTE_USER}}]
#SET the environment VAR to uppercase
SetEnvIf Remote_Username "(.*)" REMOTE_USER=1
CustomLog /var/log/httpd/access_log combined
LogFormat "%h %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" "%{REMOTE_USER}e"" combined
ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin/"
<Directory "/usr/lib64/nagios/cgi-bin/">
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
LDAP Authentication
in the Access Log file I saw
172.16.69.46 ho27720 [07/Jan/2025:16:02:07 +0100] "GET /nagios/images/tacenabled.png HTTP/1.1" 304 - "http://nagiostest.intranet.servizi/nagios/cgi-bin/tac.cgi" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" "HO27720"
LogFormat "%h %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" "%{REMOTE_USER}e""
%u is ho27720 and REMOTE_USER is HO27720
Inside Nagios (i.e. Tactical Status OverView) I see "Logged in as ho27720"
I attache the image
Why don't see HO27720 ?
Is there a way to get the same authorization of the use HO27720 or I have to define to user
HO27720 and ho27720 ?
Regard and Thanks for you help
The text was updated successfully, but these errors were encountered: