index 07ae9a588aaafcc29ac0ab9878d78397575cffb1..e7b78bf035d34de914ed4fa688f374d36604e4cd 100644 (file)
var $DisplayName = "Kolab mail service";
var $StatusFlag = "";
- function servkolab($config, $dn = NULL)
+ function servkolab($config, $dn = NULL, $parent= NULL)
{
/* Setting the hostname and tell this Plugin that we are the kolab extension*/
$this->hostname = preg_replace('/^cn=([^,]+),.*$/', '\1', $dn);
$this->dn = "k=kolab,".$config->current['BASE'];
/* Load variables, if given*/
- plugin::plugin($config, $this->dn);
+ plugin::plugin($config, $this->dn, $parent);
/* Copy needed attributes */
foreach($this->attributes as $val) {
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account) {
if ($this->is_modified) {
- $this->handle_post_events("mofify");
+ $this->handle_post_events("modify");
}
} else {
$this->handle_post_events("add");
$this->$flag = $attrs[$flag][0];
}
}
+
+
+
+ /* Return plugin informations for acl handling */
+ function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Kolab"),
+ "plDescription" => _("Kolab service"),
+ "plSelfModify" => FALSE,
+ "plDepends" => array(),
+ "plPriority" => 0,
+ "plSection" => array("administration"),
+ "plCategory" => array("server"),
+
+ "plProvidedAcls"=> array(
+ "postfix_mydomain" => _("Postfix mydomain") ,
+ "postfix_mydestination" => _("My destination") ,
+ "proftpd_ftp" => _("FTP FreeBusy service") ,
+ "postfix_mynetworks" => _("SMTP privileged networks") ,
+ "postfix_enable_virus_scan" => _("Enable virus scan") ,
+ "postfix_relayhost" => _("Relayhost") ,
+ "apache_http" => _("HTTP FreeBusy service") ,
+ "postfix_allow_unauthenticated" => _("Accept Internet Mail") ,
+ "cyrus_imap" => _("IMAP service") ,
+ "kolabFreeBusyFuture" => _("kolabFreeBusyFuture") ,
+ "cyrus_pop3" => _("POP3 service") ,
+ "cyrus_imaps" => _("IMAP/SSL service") ,
+ "cyrus_pop3s" => _("POP3/SSL service") ,
+ "cyrus_sieve" => _("Sieve service") ,
+ "cyrus_quotawarn" => _("Quota settings"))
+ ));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: