Code

Added tsig/zone
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 May 2010 11:50:52 +0000 (11:50 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sat, 8 May 2010 11:50:52 +0000 (11:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18183 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc
gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc

index 9204e2aa0ff0b1f5fde9afe467ae2f3cda7c182c..75154b7adfc2ba38a4fbbf3ccaa86f7ba28acfa4 100644 (file)
@@ -8,17 +8,18 @@ class dhcpNewSectionDialog extends plugin
   var $objectclasses      = array("whatever");
 
   /* Mapping array */
+  /*  ajout de dhcpTsigKey et dhcpDnsZone */
   var $types= array();
   var $classtype= "";
-  var $sectionMap= array(  "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass"),
+  var $sectionMap= array(  "dhcpService" => array("dhcpSharedNetwork", "dhcpSubnet", "dhcpGroup", "dhcpHost", "dhcpClass","dhcpTSigKey","dhcpDnsZone"),
                               "dhcpClass" => array("dhcpSubClass"),
                               "dhcpSubClass" => array(),
                               "dhcpHost" => array(),
                               "dhcpGroup" => array("dhcpHost"),
                               "dhcpPool" => array(),
-                              "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass"),
-                              "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool"));
-
+                              "dhcpSubnet" => array("dhcpPool", "dhcpGroup", "dhcpHost", "dhcpClass","dhcpTSigKey","dhcpDnsZone"),
+                              "dhcpSharedNetwork" => array("dhcpSubnet", "dhcpPool","dhcpTsigKey","dhcpDnsZone"),
+                              "dhcpTSigKey"=> array(), "dhcpDnsZone" => array());
 
 
   function dhcpNewSectionDialog($type)
@@ -30,7 +31,9 @@ class dhcpNewSectionDialog extends plugin
                           "dhcpGroup" => _("Group"),
                           "dhcpPool" => _("Pool"),
                           "dhcpSubnet" => _("Subnet"),
-                          "dhcpSharedNetwork" => _("Shared network"));
+                          "dhcpSharedNetwork" => _("Shared network"),
+                          "dhcpTSigKey" => _("DNS update key"),
+                          "dhcpDnsZone" => _("DNS update zones"));
 
     $this->classtype= $type;
   }
index a8994c1eb95a3762e97d23e9906f5050222c6dd6..d6614fd2f758ffe5045e71ecf545829448405832 100644 (file)
@@ -44,7 +44,9 @@ class servdhcp extends goService
             "dhcpPool" => _("Pool"),
             "dhcpSubnet" => _("Subnet"),
             "dhcpFailOverPeer" => _("Failover peer"),
-            "dhcpSharedNetwork" => _("Shared network"));
+            "dhcpSharedNetwork" => _("Shared network"),
+            "dhcpTSigKey" => _("DNS update key"),
+            "dhcpDnsZone" => _("DNS update zones"));
 
 
     /* Backport: PHP4 compatibility  */
@@ -122,6 +124,7 @@ class servdhcp extends goService
     /* Section Creation? */
     if (isset($_POST['create_section']) && isset($_POST['section'])){
       $section= $_POST['section'];
+
       $tmp = new dhcpNewSectionDialog(NULL);
       if (isset($tmp->sectionMap[$section])){
         $this->dialog= new $section($this,$this->current_object);
@@ -694,7 +697,7 @@ class servdhcp extends goService
   {
     $type= "";
     $types= array("dhcpService", "dhcpClass", "dhcpSubClass", "dhcpHost",
-                  "dhcpGroup", "dhcpPool", "dhcpSubnet", "dhcpSharedNetwork");
+                  "dhcpGroup", "dhcpPool", "dhcpSubnet", "dhcpSharedNetwork", "dhcpTSigKey", "dhcpDnsZone");
 
     foreach ($this->dhcpObjectCache[$dn]['objectClass'] as $oc){
       if (in_array($oc, $types)){