Re: [Nagios-devel] readonly user for cgis

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] readonly user for cgis

Post by Guest »

Ack, bleck, oh boy.

So I sent out some bad diffs.

I started with an authorized_read_only when I first started doing this bu=
t then=20
thought about the security risk of implied access with explicit access re=
moval.=20
So I redid the changes to the current form of authorized_for_comments and=
=20
authorized_for commands (And this was 6 months ago). So these diffs are o=
nly=20
useful if you have my previous read_only code. Please ignore the diffs an=
d just=20
use the .c and .h files and make your own diffs. I can tell you these are=
based=20
on the nagios-1.0 released code.

Sorry for the confusion,
Derrick

Quoting "local.coder" :

> Here is a tar with the original files I started with, the new files and=
the=20
> diff's.
>=20
> Ethan, You may want to work this into the current code base.
>=20
> Using this info.
>=20
> In cgi.cfg you have two new config options.
>=20
> authorized_for_commands=3D
> authorized_for_comments=3D
>=20
> So you can now add someone as authroized_for_all_hosts but not add them=
to
> the=20
> two new options and then they will see all hosts but not comments or th=
e=20
> commands pages.
>=20
> Let me know if you have any problems.
>=20
> Quoting Dietmar Ruzicka :
>=20
> > Hi Derrick,
> >=20
> > I cannot find the diff's in the list. Would you please send them to m=
e.
> >=20
> > Thanks
> >=20
> > Dietmar
> >=20
> >=20
> > On Wed, 6 Aug 2003, local.coder wrote:
> >=20
> > > I have this change.
> > >=20
> > > I should submit it. really.
> > >=20
> > > 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.
> > >=20
> > > Now my version also hides comments from read only users so the noc =
can
> be
> > more=20
> > > free in what they type there.
> > >=20
> > > I will send the diff's to the list tommorow when I am back in the
> office.
> > >=20
> > > Derrick
> > >=20
> >=20
> >=20
>=20
>=20
>=20







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked