From d656cd260370b348f5ff73e24e144c011544d9c0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Nov 2005 09:55:34 +0000 Subject: [PATCH] Fixed nagios ACLS git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2151 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/acl_definition.inc | 17 +++++++++++++++++ plugins/personal/nagios/main.inc | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/plugins/admin/groups/acl_definition.inc b/plugins/admin/groups/acl_definition.inc index 0de443edc..a0ccd2b97 100644 --- a/plugins/admin/groups/acl_definition.inc +++ b/plugins/admin/groups/acl_definition.inc @@ -248,5 +248,22 @@ $ACLD['phpscheduleitAccount'] =array("gosaphpscheduleit" ); $ACLD['phoneAccount'] = array("goFonDeliveryMode", "goFonHardware","goFonPIN","goFonVoicemailPIN","telephoneNumber", "goFonMacro"); +$ACLD['nagiosAccount'] = array("NagiosAlias" +, "NagiosPager" +, "NagiosMail" +, "HostNotificationPeriod" +, "ServiceNotificationPeriod" +, "HostNotificationCommands" +, "ServiceNotificationCommands" +, "HostNotificationOptions" +, "ServiceNotificationOptions" +, "AuthorizedAllHosts" +, "AuthorizedAllServices" +, "AuthorizedSystemCommands" +, "AuthorizedAllHostCommands" +, "AuthorizedAllServiceCommands" +, "AuthorizedConfigurationInformation" +, "AuthorizedSystemInformation"); + $ACLD['global-addressbook']= array("create", "delete"); ?> diff --git a/plugins/personal/nagios/main.inc b/plugins/personal/nagios/main.inc index 5ede10b2e..f2a158f7b 100644 --- a/plugins/personal/nagios/main.inc +++ b/plugins/personal/nagios/main.inc @@ -57,10 +57,10 @@ if (!$remove_lock){ /* Adjust acl's to mode */ if (isset($_SESSION['edit'])){ $acl= get_permissions ($ui->dn, $ui->subtreeACL); - $nagiosAccount->acl= get_module_permission($acl, "nagios", $ui->dn); + $nagiosAccount->acl= get_module_permission($acl, "nagiosAccount", $ui->dn); } else { $acl= get_permissions ($ui->dn, $ui->subtreeACL); - $editacl= get_module_permission($acl, "nagios", $ui->dn); + $editacl= get_module_permission($acl, "nagiosAccount", $ui->dn); $nagiosAccount->acl= "#none#"; } -- 2.30.2