Code

Fixed opsi errors
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Aug 2008 09:54:43 +0000 (09:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Aug 2008 09:54:43 +0000 (09:54 +0000)
-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
gosa-plugins/opsi/admin/opsi/class_opsi_generic.inc

index ebbbf5941e0bcf2b7b30c03e3df83b4e86c81d2d..4c055b6cb7e7c69d4e45c100329ce70548954275 100644 (file)
@@ -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"),
index 65178cbc126f1133ae17aa0b0b9f405233418366..0b23871615c1fd2bd5cbe61cd97fd2f4a4037a01 100644 (file)
@@ -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()
+          ));
+  }
+
 }