From 47b05be83dbc0168c2d2154c351ea5922250ea5c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Oct 2007 07:28:24 +0000 Subject: [PATCH] Added snmp-community to gosa setup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7679 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 6 +++--- setup/class_setupStep_Config3.inc | 3 ++- setup/setup_config3.tpl | 9 +++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index b5697afd9..0cdaf16d0 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -181,7 +181,7 @@ + snmpcommunity="{$cv.optional.snmpcommunity}" /> @@ -211,7 +211,7 @@ {/if} + snmpcommunity="{$cv.optional.snmpcommunity}" /> @@ -222,7 +222,7 @@ + snmpcommunity="{$cv.optional.snmpcommunity}" /> {if $cv.enableFAI_management} {else} diff --git a/setup/class_setupStep_Config3.inc b/setup/class_setupStep_Config3.inc index 372eb017d..6db74ddb3 100644 --- a/setup/class_setupStep_Config3.inc +++ b/setup/class_setupStep_Config3.inc @@ -36,6 +36,7 @@ class Step_Config3 extends setup_step "ppd_path" => "/var/spool/ppd/", "ppd_path_active" => FALSE, "compile" => "/var/spool/gosa", + "snmpcommunity" => "goto", "debuglevel" => 0, "session_lifetime" => 7200, "max_ldap_query_time" => "5.0", @@ -97,7 +98,7 @@ class Step_Config3 extends setup_step } } - foreach(array("list_summary","strict_units","noprimarygroup","forceglobals","forcessl","ldapstats","warnssl","compile","debuglevel","session_lifetime") as $name){ + foreach(array("list_summary","strict_units","noprimarygroup","forceglobals","forcessl","ldapstats","warnssl","snmpcommunity","compile","debuglevel","session_lifetime") as $name){ if(isset($_POST[$name])){ $this->optional[$name] = get_post($name); } diff --git a/setup/setup_config3.tpl b/setup/setup_config3.tpl index 47c2a4230..d92601a6e 100644 --- a/setup/setup_config3.tpl +++ b/setup/setup_config3.tpl @@ -46,6 +46,15 @@ type='text' value='{$optional.compile}'> +
+
+ {t}SNMP community{/t} +
+
+ +
+
{t}Path for PPD storage{/t} -- 2.30.2