X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servKolab.inc;h=3b666fd43bbae9848f4ebb8cfcc630909d4d4c81;hb=7a6a428eb1c6534e448094d51bc6a542fe832bb9;hp=feb471c50e63c950b40b4f0ca66d5174f3a6e9e2;hpb=092fcabde99982b189aec5465392b21846c481e2;p=gosa.git diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index feb471c50..3b666fd43 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) { @@ -77,6 +77,9 @@ class servkolab extends goService { } } + if($this->is_account){ + @log::log("view","server/".get_class($this),$this->dn); + } } @@ -212,6 +215,8 @@ class servkolab extends goService { gosa_log("Removing ".$this->hostname." from list of kolabHosts"); } + @log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + /* Optionally execute a command after we're done */ $this->handle_post_events("remove"); } @@ -231,7 +236,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){ @@ -345,6 +350,13 @@ class servkolab extends goService { $ldap->cd($this->dn); $this->cleanup();; $ldap->$mode($this->attrs); + + if($mode == "add"){ + @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + }else{ + @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + } + show_ldap_error($ldap->get_error(), sprintf(_("Saving system server/kolab with dn '%s' failed."),$this->dn)); /* Optionally execute a command after we're done */ @@ -372,16 +384,17 @@ class servkolab extends goService { { return (array( "plShortName" => _("Kolab"), - "plDescription" => _("Kolab service"), + "plDescription" => _("Kolab mail service")." ("._("Services").")", "plSelfModify" => FALSE, "plDepends" => array(), - "plPriority" => 0, + "plPriority" => 85, "plSection" => array("administration"), "plCategory" => array("server"), "plProvidedAcls"=> array( "postfixmydomain" => _("Postfix mydomain") , "postfixmydestination" => _("My destination") , + "cyrusadmins" => _("Cyrus admins") , "proftpdftp" => _("FTP FreeBusy service") , "postfixmynetworks" => _("SMTP privileged networks") , "postfixenablevirusscan" => _("Enable virus scan") ,