From: hickert Date: Tue, 31 May 2005 11:26:20 +0000 (+0000) Subject: Dummy mail Mehtod for setup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac3b39974f144900e37f16a2d99d2d9ab59e070d;p=gosa.git Dummy mail Mehtod for setup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@537 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/ihtml/themes/default/setup_step4.tpl b/ihtml/themes/default/setup_step4.tpl index 194b40cd4..8c3303be3 100644 --- a/ihtml/themes/default/setup_step4.tpl +++ b/ihtml/themes/default/setup_step4.tpl @@ -88,7 +88,8 @@ {t}Mail method{/t} diff --git a/include/setup_checks.inc b/include/setup_checks.inc index 4e580256d..91b45e513 100644 --- a/include/setup_checks.inc +++ b/include/setup_checks.inc @@ -390,6 +390,7 @@ function perform_additional_checks(&$faults) function parse_contrib_conf() { + $str = ""; $used_samba_version = 0; $query = ""; @@ -429,7 +430,11 @@ function parse_contrib_conf() $replacements['{CRYPT}'] = $ldapconf['arr_cryptkeys'][$ldapconf['arr_crypts']]; $replacements['{SID}\n'] = ""; $replacements['{RIDBASE}\n'] = ""; - $replacements['{MAILMETHOD}'] = $ldapconf['mail_methods'][$ldapconf['mail']]; + if($ldapconf['mail'] == "disabled") + $replacements['{MAILMETHOD}'] = ""; + else + $replacements['{MAILMETHOD}'] = $ldapconf['mail_methods'][$ldapconf['mail']]; + if($ldapconf['mail'] == "disabled") $replacements['{SMBHASH}'] = $pwdhash; $replacements['{GOVERNMENTMODE}']= "false"; $replacements['{kolabAccount}'] = "";