guest access

Sébastien Barbereau barbereau at gmail.com
Mon Jul 30 17:41:35 CEST 2007


Can't you just do this by playing with the apache and nagios configs?
I've done this in the past and it was not really a catch the only thing is
that you need
2 nagios configurations files: one serving the unauthenticated content with
no exec permissions,
one with the authenticated content with the exec permissions (this also
means that you need two set
of cgi scripts reading different nagios config files).

Other options is to not use apache native authentication but to create your
own apache auth module. This can be done
in perl using mod-perl or mod-python. In this case you setup a proper
authentication mechanism under apache with a default
guest user account to fallback if no proper auth is provided. This is
probably nicer and provides more flexibility but is probably more
complicated.
Some examples
of apache authentication modules:
perl: apache::authcookie (
http://search.cpan.org/~mschout/Apache-AuthCookie-3.10/lib/Apache2/AuthCookie.pm
)
python:
http://www.modpython.org/live/current/doc-html/tut-more-complicated.html
I've done some code on this here:
http://www.barbich.net/websvn/wsvn/nagios/nagios/doc/mod_apache_authentication/?rev=0&sc=0


On 7/29/07, Paul Dugas <paul at dugas.cc> wrote:
>
> Been fiddling with this for a while now and am stumped.  I figure I'm
> not the first to want this so before I get a brain cramp I'll ask.
>
> I run a couple Nagios server on internal networks and I want internal
> users to get read access without having to log in.  I want a select
> number of users to be able to login and get higher level access.  I've
> been trying to get the HTTP interface default to the guest account and
> the HTTPS interface to require a login.  My admins and I would use the
> HTTPS interface while our customers would use the standard HTTP
> interface.
>
> Anybody got something like this going?  Perhaps something else that
> would accomplish the same?  Any info would be appreciated.
>
> pd
> --
> Paul Dugas, Computer Engineer                Dugas Enterprises, LLC
> paul at dugas.cc        phone: 404-932-1355     522 Black Canyon Park
> http://dugas.cc        fax: 866-751-6494     Canton, GA 30114 USA
> --
> This e-mail and any attachments are confidential.  If you receive
> this message in error or are not the intended recipient, you should
> not retain, distribute, disclose or use any of this information and
> you should destroy the e-mail and any attachments or copies.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070730/e3a5888a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list