From 71b90ee0c0168935336859efded55dfb3821e5aa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 21 Jun 2007 09:28:31 +0000 Subject: [PATCH] a a a a a a a git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6651 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 13 +++++++++++++ setup/class_setupStep_Config2.inc | 11 ++++++++--- setup/setup_config2.tpl | 11 +++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/contrib/gosa.conf b/contrib/gosa.conf index e63c5a7d9..5c2f36d46 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -15,8 +15,15 @@ path="plugins/personal/mail" /> +{if $cv.use_netatalk} +{else} + +{/if} +{if $cv.use_netatalk} +{else} + +{/if} diff --git a/setup/class_setupStep_Config2.inc b/setup/class_setupStep_Config2.inc index 1e3bdea5e..2e0d333f1 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -43,11 +43,11 @@ class Step_Config2 extends setup_step "samba_rid_active" => FALSE); var $sambaDomain_found = FALSE; + var $use_netatalk = FALSE; - var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail"); + var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk"); var $called = FALSE; - function Step_Config2() { $this->update_strings(); @@ -100,7 +100,12 @@ class Step_Config2 extends setup_step $this->samba_settings['samba_sid_active'] = TRUE; $this->samba_settings['samba_rid_active'] = TRUE; } - + + /* Check if we can enable netatalk plugin */ + $tmp = $ldap->get_objectclasses(); + if(is_array($tmp) && isset($tmp['apple-user'])) { + $this->use_netatalk = TRUE; + } $this->called = TRUE; } diff --git a/setup/setup_config2.tpl b/setup/setup_config2.tpl index c3925f22a..d8d09e76a 100644 --- a/setup/setup_config2.tpl +++ b/setup/setup_config2.tpl @@ -81,6 +81,17 @@ +
+
+ {t}Enable user netatalk plugin{/t} +
+
+ +
+
+
{t}Government mode{/t} -- 2.30.2