From 5c5b9cce65d7443ee035f087aa73ebe3471fdbb1 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 14 Aug 2007 10:52:00 +0000 Subject: [PATCH] Made DNS and DHCP plugins configurable via setup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7058 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 10 ++++++++++ setup/class_setupStep_Config2.inc | 23 ++++++++++++++++++++--- setup/setup_config2.tpl | 24 ++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 191e2fd9c..82abc69a1 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -177,6 +177,16 @@ {else} +{/if} +{if $cv.generic_settings.enableDNS} + +{else} + +{/if} +{if $cv.generic_settings.enableDHCP} + +{else} + {/if} diff --git a/setup/class_setupStep_Config2.inc b/setup/class_setupStep_Config2.inc index 18cebe586..3207b2200 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -32,9 +32,12 @@ class Step_Config2 extends setup_step var $mail_settings = array("vacationdir" => "/etc/gosa/vacation", "vacationdir_active" => FALSE); - var $generic_settings = array( "enableCopyPaste" => false, - "wws_ou" => "ou=winstations", - "wws_ou_active" => FALSE); + var $generic_settings = array( + "enableCopyPaste" => false, + "enableDNS" => false, + "enableDHCP" => false, + "wws_ou" => "ou=winstations", + "wws_ou_active" => FALSE); var $samba_settings = array( "samba_sid" => "0-815-4711", "samba_sid_active" => FALSE, @@ -117,6 +120,14 @@ class Step_Config2 extends setup_step # $this->enableFAI_management = TRUE; } + if(is_array($tmp) && isset($tmp['dhcpClass'])){ + $this->generic_settings['enableDHCP'] = TRUE; + } + + if(is_array($tmp) && isset($tmp['dNSZone'])){ + $this->generic_settings['enableDNS'] = TRUE; + } + $this->called = TRUE; } @@ -163,6 +174,12 @@ class Step_Config2 extends setup_step if(isset($_POST['enableCopyPaste'])){ $this->generic_settings['enableCopyPaste'] = get_post('enableCopyPaste'); } + if(isset($_POST['enableDNS'])){ + $this->generic_settings['enableDNS'] = get_post('enableDNS'); + } + if(isset($_POST['enableDHCP'])){ + $this->generic_settings['enableDHCP'] = get_post('enableDHCP'); + } if(isset($_POST['wws_ou_active'])){ $this->generic_settings['wws_ou_active'] = TRUE; diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index dd9368cd7..23345c576 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -106,6 +106,30 @@ +
+
+ {t}Enable DNS extension{/t} +
+
+ + +
+
+ +
+
+ {t}Enable DHCP extension{/t} +
+
+ + +
+
+
{t}Enable FAI release management{/t} -- 2.30.2