Patch to support group based permissions in CGIs

Matthieu Huguet matthieu_huguet at prizee.fr
Thu Mar 6 11:22:11 CET 2008


Hello,

I've done a patch to support group based permissions in CGIs.

(sorry I don't know if there is particular rules to submit patches, i'm
new in the nagios-devel world :-)

* Why ?
Our night support/supervision team is very dynamic and need to access
Nagios web interface. All team members have the same permissions.
It was boring to change many lines in cgi configuration file to add or
remove a member.

* How?
In cgi configuration file there some new variables :

"group_file" : path to the group definition file

"group_authorized_for_system_information",
"group_authorized_for_configuration_information",
"group_authorized_for_system_commands",
"group_authorized_for_all_services",
"group_authorized_for_all_hosts",
"group_authorized_for_all_service_commands",
"group_authorized_for_all_host_commands"

Comma separated list of groups who have the corresponding permission.
 

The format of the group file is simple :

groupname=user1,user2,user3
admin=nagiosadmin
supervision_team=alice,george,greg,bob

-----------

* What do you think about it ? :)


Regards,

Matthieu Huguet


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgiauth-group.patch.gz
Type: application/x-gzip
Size: 2455 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080306/93b59932/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list