I am going to see if I can set the cookies sessions to be expired as a way to get around modifying the utils.conf.inc.
Also, the sytems will not be internet facing and I explained to my manager about the hijacking session and he sees it as the way to impliment this, unless someone else has a better idea. Our abilities are limited by policies.
Is there a function that I can call for when a user clicks logout? I would like to end the S3 session so a user doesn't get the Nagios login prompt.
Also, on a different topic, it doesn't look like I am able to download modules from my nagios site. I click on the icon and get a blank page.
Thanks again!
-Doron
Custom Login Component
Re: Custom Login Component
No, I checked the code and it doesn't look like there's a callback for it. You'll probably have to do an apache redirect.Is there a function that I can call for when a user clicks logout? I would like to end the S3 session so a user doesn't get the Nagios login prompt.
When you right click and copy the link location, what URL does it generate?Also, on a different topic, it doesn't look like I am able to download modules from my nagios site. I click on the icon and get a blank page.
Also, tail the apache log, a blank page means a PHP fatal error.
Re: Custom Login Component
Great idea on the redirect!mguthrie wrote:No, I checked the code and it doesn't look like there's a callback for it. You'll probably have to do an apache redirect.Is there a function that I can call for when a user clicks logout? I would like to end the S3 session so a user doesn't get the Nagios login prompt.
When you right click and copy the link location, what URL does it generate?Also, on a different topic, it doesn't look like I am able to download modules from my nagios site. I click on the icon and get a blank page.
Also, tail the apache log, a blank page means a PHP fatal error.
Code: Select all
#Works for redirecting non authorized users to not auth message
RewriteCond %{QUERY_STRING} redirect=.+
RewriteRule ^/nagiosxi/login.php http://nagios-test1.corp.foo.com/notauth.html [QSA]
#Works for redirecting to cookie clear session
RewriteCond %{QUERY_STRING} logout
RewriteRule ^/nagiosxi/login.php http://nagios-test1.corp.foo.com/login.php [R=301,L,NE]
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Custom Login Component
Thanks for keeping us up to date.
Re: Custom Login Component
I think I invented magic with the help of everyone here. Looks like everything is working smoothly. I need to get some poor saps to test it for me to verify it is working the way it should be.
Re: Custom Login Component
Good deal, glad it's working for you!