diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index 8901800215bd79b27cccb6aea9cac41f63eda7b9..fa4108f8027524daa4e06f727837fac80bfc8dc4 100644 (file)
$ldap->cd($this->dn);
$ldap->add($this->attrs);
}
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing server services/imap with dn '%s' failed."),$this->dn));
$this->handle_post_events("remove");
}
$ldap->cd($this->dn);
$ldap->add($this->attrs);
}
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/imap with dn '%s' failed."),$this->dn));
if($this->initially_was_account){
$this->handle_post_events("modify");
}else{
$attrs[$flag] = $value;
$this->$flag = $value;
$ldap->modify($attrs);
- show_ldap_error($ldap->get_error());
+ show_ldap_error($ldap->get_error(), sprintf(_("Set status flag for server services/imap with dn '%s' failed."),$this->dn));
$this->action_hook();
}
}
$this->$flag = $attrs[$flag][0];
}
}
+
+
+ /* Return plugin informations for acl handling */
+ function plInfo()
+ {
+ return (array(
+ "plShortName" => _("Imap"),
+ "plDescription" => _("Imap service"),
+ "plSelfModify" => FALSE,
+ "plDepends" => array(),
+ "plPriority" => 0,
+ "plSection" => array("administration"),
+ "plCategory" => array("server"),
+
+ "plProvidedAcls"=> array(
+ "goImapName" =>_("Server identifier"),
+ "goImapConnect" =>_("Connect URL"),
+ "goImapAdmin" =>_("Admin user"),
+ "goImapPassword" =>_("Admin password"),
+ "goImapSievePort" =>_("Sieve port"),
+ "cyrusImap" =>_("Start IMAP service"),
+ "cyrusImapSSL" =>_("Start IMAP SSL service"),
+ "cyrusPop3" =>_("Start POP3 service"),
+ "cyrusPop3SSL" =>_("Start POP3 SSL service"))
+ ));
+ }
+
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>