Page 1 of 1

Nagvis LogonEnv and LogonSession

Posted: Thu Aug 08, 2019 11:03 am
by paulol
Can i have access to this topic? or can you post the solution here? Maybe here has a solution that i need.
https://support.nagios.com/forum/viewto ... 16&t=49393

I set the logonmodule="LogonEnv" in nagvis configuration.
And after that i had to set the SetEnv REMOTE_USER MyUSER in nagvis.conf apache configuration to grant access to my TV don't ask password.

But everybody now are accessing with this REMOTE_USER MyUSER... There is any alternative to Keep the logonmodule="LogonSession" and the SetEnv REMOTE_USER MyUSER just for TV?

Re: Nagvis LogonEnv and LogonSession

Posted: Thu Aug 08, 2019 12:53 pm
by scottwilkerson
That topic was just about the user getting an error because they had a depricated showgeomap setting in their config..
paulol wrote:I set the logonmodule="LogonEnv" in nagvis configuration.
And after that i had to set the SetEnv REMOTE_USER MyUSER in nagvis.conf apache configuration to grant access to my TV don't ask password.
If you set this as you said, every user is going to be loggedin as you.
paulol wrote:here is any alternative to Keep the logonmodule="LogonSession" and the SetEnv REMOTE_USER MyUSER just for TV?
You could just add your user:password to the URL the TV is trying to access, that's one way to accomplish what you are looking for.

Code: Select all

http://USERNAME:PASSWORD@HOSTNAME/....