From abaa37a8fcf8487cb4c81f307398de12c05acaf9 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Aug 2008 09:54:43 +0000 Subject: [PATCH] Fixed opsi errors -Undefined index MAc -Added ACLs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12256 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/opsi/admin/opsi/class_opsi.inc | 1 + .../opsi/admin/opsi/class_opsi_generic.inc | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi.inc b/gosa-plugins/opsi/admin/opsi/class_opsi.inc index ebbbf5941..4c055b6cb 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsi.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsi.inc @@ -66,6 +66,7 @@ class opsi extends gosaSupportDaemon $data = array(); foreach($res as $entry){ + if(!isset($entry['MAC'])) $entry['MAC'] = "";; $data[] = array( "dn" => "opsi:=".$entry['NAME'].",".get_ou("winstations").$this->config->current['BASE'], "objectClass" => array("gosa_opsi_client"), diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi_generic.inc b/gosa-plugins/opsi/admin/opsi/class_opsi_generic.inc index 65178cbc1..0b2387161 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsi_generic.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsi_generic.inc @@ -240,6 +240,23 @@ class opsi_generic extends plugin } } } + + /* Return plugin informations for acl handling */ + static function plInfo() + { + return (array( + "plShortName" => _("Generic"), + "plDescription" => _("Opsi generic"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 1, + "plSection" => array("administration"), + "plCategory" => array("opsi" => array("description" => _("Opsi client"), + "objectClass" => "dummy_class_opsi")), + "plProvidedAcls"=> array() + )); + } + } -- 2.30.2