From bf40f54f4aa7e175c637cd89d9091d1a0e487f91 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Sep 2006 04:12:58 +0000 Subject: [PATCH] Fixed kolab service plugin -Added yrus admins to list of editeable attributes. -removed old acls from template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4828 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servKolab.inc | 7 ++-- plugins/admin/systems/servkolab.tpl | 39 ++++++++++++++--------- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 7ca2e1d70..5c036d196 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -9,6 +9,7 @@ class servkolab extends goService { var $cli_parameters = array("eins"=>"Eins ist toll", "zwei"=>"Zwei ist noch besser"); var $postfix_mydomain = ""; + var $cyrus_admins = ""; var $postfix_mydestination = ""; var $postfix_mynetworks = "127.0.0.1/8"; var $postfix_enable_virus_scan = "TRUE"; @@ -18,7 +19,6 @@ class servkolab extends goService { var $cyrus_quotawarn = "80"; var $kolabFreeBusyFuture = "1"; var $k = "kolab"; - var $cyrus_admins = "TRUE"; var $cyrus_imap = "TRUE"; var $cyrus_pop3 = "TRUE"; var $cyrus_imaps = "TRUE"; @@ -49,7 +49,7 @@ class servkolab extends goService { $this->dn = "k=kolab,".$config->current['BASE']; /* Load variables, if given*/ - plugin::plugin($config, $this->dn, $parent); + plugin::plugin($config, $this->dn); /* Copy needed attributes */ foreach($this->attributes as $val) { @@ -231,7 +231,7 @@ class servkolab extends goService { /* Save checkboxes */ foreach (array( "postfix_enable_virus_scan", "postfix_allow_unauthenticated", - "cyrus_admins", "cyrus_imap", "cyrus_pop3", "cyrus_imaps", + "cyrus_imap", "cyrus_pop3", "cyrus_imaps", "cyrus_pop3s", "cyrus_sieve", "apache_allow_unauthenticated_fb", "proftpd_ftp", "apache_http") as $cb){ @@ -382,6 +382,7 @@ class servkolab extends goService { "plProvidedAcls"=> array( "postfixmydomain" => _("Postfix mydomain") , "postfixmydestination" => _("My destination") , + "cyrusadmins" => _("Cyrus admins") , "proftpdftp" => _("FTP FreeBusy service") , "postfixmynetworks" => _("SMTP privileged networks") , "postfixenablevirusscan" => _("Enable virus scan") , diff --git a/plugins/admin/systems/servkolab.tpl b/plugins/admin/systems/servkolab.tpl index d292a7f6f..a873c958c 100644 --- a/plugins/admin/systems/servkolab.tpl +++ b/plugins/admin/systems/servkolab.tpl @@ -10,7 +10,7 @@ {render acl=$postfixmydomainACL} - + {/render} @@ -19,7 +19,16 @@ {render acl=$postfixmydestinationACL} - + +{/render} + + + + {t}Cyrus admins{/t} + + +{render acl=$cyrusadminsACL} + {/render} @@ -32,7 +41,7 @@ {render acl=$cyruspop3ACL} - + {/render} @@ -42,7 +51,7 @@ {render acl=$cyruspop3sACL} - + {/render} @@ -52,7 +61,7 @@ {render acl=$cyrusimapACL} - + {/render} @@ -62,7 +71,7 @@ {render acl=$cyrusimapsACL} - + {/render} @@ -72,7 +81,7 @@ {render acl=$cyrussieveACL} - + {/render} @@ -82,7 +91,7 @@ {render acl=$proftpdftpACL} - + {/render} @@ -92,7 +101,7 @@ {render acl=$apachehttpACL} - + {/render} @@ -102,7 +111,7 @@ {render acl=$postfixenablevirusscanACL} - + {/render} @@ -141,7 +150,7 @@ {render acl=$apacheallowunauthenticatedfbACL} - {t}Allow unauthenticated downloading of Free/Busy information{/t} + {t}Allow unauthenticated downloading of Free/Busy information{/t} {/render} @@ -166,7 +175,7 @@
{render acl=$postfixmynetworksACL} - + {/render}
( {t}Enter multiple values, seperated with{/t} , ) @@ -188,7 +197,7 @@ {render acl=$postfixrelayhostACL} - + {/render} @@ -197,7 +206,7 @@   {render acl=$postfixrelayhostACL} - + {/render} @@ -217,7 +226,7 @@ {render acl=$postfixallowunauthenticatedACL} - + {/render} -- 2.30.2