Firstly I must state that this is not a critical problem! It is just bugging me.
I have Nagios Core 4.4.14 running on a Raspberry Pi with PiHole - so using Lighty rather than Apache.
Everything is running fine except that although I only login as nagiosadmin on the web interface it says "Logged in as nagiosadmin, user, user (see attached).
This means that I have to set all authorized_for = settings to * rather than nagiosadmin in cgi.cfg otherwise I get permission errors.
My question is if I am logging in as nagiosadmin where on earth is it getting user from?
I have been through all the config files and can't find anything. Obviously I'm missing something but I have been trawling through for days.
I only have nagiosadmin in htpasswd.
Anybody able to help?
Thanks
Colin
Annoying web login user issue
Annoying web login user issue
- Attachments
-
- Capture.JPG (14.62 KiB) Viewed 12669 times
Re: Annoying web login user issue
Found it!!
Lighttpd nagios.conf file had this:
setenv.add-environment = ( "REMOTE_USER" => "user" )
Removed it and all sweetness.
Colin
Lighttpd nagios.conf file had this:
setenv.add-environment = ( "REMOTE_USER" => "user" )
Removed it and all sweetness.
Colin