From: cajus Date: Sat, 8 May 2010 11:50:52 +0000 (+0000) Subject: Added tsig/zone X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7eb6275e50938dd157d2c05564b3163d7956b8c6;p=gosa.git Added tsig/zone git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18183 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc index 9204e2aa0..75154b7ad 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNewSectionDialog.inc @@ -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; } diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc index a8994c1eb..d6614fd2f 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_servDHCP.inc @@ -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)){