readonly user for cgis
local.coder
code at novageeks.org
Fri Aug 22 16:31:59 CEST 2003
Ack, bleck, oh boy.
So I sent out some bad diffs.
I started with an authorized_read_only when I first started doing this but then
thought about the security risk of implied access with explicit access removal.
So I redid the changes to the current form of authorized_for_comments and
authorized_for commands (And this was 6 months ago). So these diffs are only
useful if you have my previous read_only code. Please ignore the diffs and just
use the .c and .h files and make your own diffs. I can tell you these are based
on the nagios-1.0 released code.
Sorry for the confusion,
Derrick
Quoting "local.coder" <code at novageeks.org>:
> Here is a tar with the original files I started with, the new files and the
> diff's.
>
> Ethan, You may want to work this into the current code base.
>
> Using this info.
>
> In cgi.cfg you have two new config options.
>
> authorized_for_commands=
> authorized_for_comments=
>
> So you can now add someone as authroized_for_all_hosts but not add them to
> the
> two new options and then they will see all hosts but not comments or the
> commands pages.
>
> Let me know if you have any problems.
>
> Quoting Dietmar Ruzicka <druzicka at cube1.cubit.at>:
>
> > Hi Derrick,
> >
> > I cannot find the diff's in the list. Would you please send them to me.
> >
> > Thanks
> >
> > Dietmar
> >
> >
> > On Wed, 6 Aug 2003, local.coder wrote:
> >
> > > I have this change.
> > >
> > > I should submit it. really.
> > >
> > > In the config file I have two new options. readonly and
> > readonly_for_all_hosts.
> > > That's for managers who need to see but not touch.
> > >
> > > Now my version also hides comments from read only users so the noc can
> be
> > more
> > > free in what they type there.
> > >
> > > I will send the diff's to the list tommorow when I am back in the
> office.
> > >
> > > Derrick
> > >
> >
> >
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
More information about the Developers
mailing list