Code

Added netatalk to setup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 09:31:09 +0000 (09:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 09:31:09 +0000 (09:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6652 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
setup/class_setupStep_Config2.inc
setup/setup_config2.tpl

index 31e579c7fea7bf0650b7391c852611ad29c9f434..47816a8d6c9b3efd3c88eaa2bc65b283aa98a794 100644 (file)
                                path="plugins/personal/mail" />
                        <plugin acl="default" class="sambaAccount" icon="samba.png"
                                path="plugins/personal/samba" />
+{if $cv.use_netatalk}
                        <plugin acl="default" class="netatalk" icon="netatalk.png"
                                path="plugins/personal/netatalk" />
+{else}
+<!--
+                       <plugin acl="default" class="netatalk" icon="netatalk.png"
+                               path="plugins/personal/netatalk" />
+-->
+{/if}
                        <plugin acl="default" class="connectivity" icon="proxy.png"
                                path="plugins/personal/connectivity" />
                        <plugin acl="default" class="gofaxAccount" icon="fax.png"
                <tab class="environment" name="Environment" />
                <tab class="mailAccount" name="Mail" />
                <tab class="sambaAccount" name="Samba" />
+{if $cv.use_netatalk}
                <tab class="netatalk" name="Netatalk" />
+{else}
+<!--
+               <tab class="netatalk" name="Netatalk" />
+-->
+{/if}
                <tab class="connectivity" name="Connectivity" />
                <tab class="gofaxAccount" name="Fax" />
                <tab class="phoneAccount" name="Phone" />
index d238af0455f89790251f38bde337ef73bef07166..6dca19771618fe0b7a997b4bf08f480f6a0ab27b 100644 (file)
@@ -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;
     }
 
index 5b35c4ecb0c9fca889a0bfe497a9bdcd63bb3ecb..af924b8b5c3979f6c6b6bf21785d4ed702812c41 100644 (file)
         </div>
     </div>
 
+       <div class='step4_container'>
+        <div class='step4_name'>
+            {t}Enable user netatalk plugin{/t}
+        </div>
+        <div class='step4_value'>
+            <select name="use_netatalk" size="1" title="">
+                {html_options options=$bool selected=$use_netatalk}
+            </select>
+        </div>
+    </div>
+
     <div class='step4_container'>
         <div class='step4_name'>
             {t}Government mode{/t}