From: hickert Date: Thu, 21 Jun 2007 09:31:09 +0000 (+0000) Subject: Added netatalk to setup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f87ea8c2a050a8ecea5c7e735f2aa7fc49c06fac;p=gosa.git Added netatalk to setup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 31e579c7f..47816a8d6 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 d238af045..6dca19771 100644 --- a/setup/class_setupStep_Config2.inc +++ b/setup/class_setupStep_Config2.inc @@ -48,11 +48,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(); @@ -105,7 +105,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 5b35c4ecb..af924b8b5 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}