summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 620856b)
raw | patch | inline | side by side (parent: 620856b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 May 2005 10:01:38 +0000 (10:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 May 2005 10:01:38 +0000 (10:01 +0000) |
plugins/admin/systems/class_servKolab.inc | patch | blob | history |
index add99a0031744cc5d3cf14669baa40cae890f1ff..894746943ad9d6282dd9bb3fad8d2c6d03b9e6ee 100644 (file)
var $apache_http = "";
var $kolabHost = array("");
var $postfix_relayhost = "";
+ var $templ = ""; // This variable saves the whole plugin, before loading any Kolab settings,
+ // So we can rereate this class again at the end of this script
+ // This is needed because some scripts won's save their settings correct
+
var $attributes = array("postfix_mydomain", "postfix_mydestination",
"postfix_mynetworks", "postfix_enable_virus_scan","postfix_relayhost",
"cyrus_autocreatequota", "cyrus_admins", "cyrus_imap",
function servkolab($config, $dn = NULL)
{
- echo "DN korrigieren<br>";
+ plugin::plugin($config,$dn);
+ $templ = false;
+ $this->dn = $dn;
+ $templ = $this;
+ $this->templ = $templ;
$this->dn = "k=kolab,".$config->current['BASE'];
plugin::plugin($config, $this->dn);
unset($newattrs['cyrus-admins']);
unset($newattrs['postfix-mydomain']);
unset($newattrs['postfix-mydestination']);
- //print_a($newattrs);
-
+ print ($this->dn);
$ldap->cd($this->dn);
- $ldap->modify($newattrs);
+ print_a($newattrs);
+ //$ldap->modify($newattrs);
} else {
/* We must create a new Entry */
$newattrs['k'] = "kolab";
$ldap->cd($this->dn);
$ldap->add($newattrs);
}
-
+
+ $templ = "";
+ $templ = $this->templ;
+ $this = $templ;
+
/* show any errors */
show_ldap_error($ldap->get_error());
-
+
/* Optionally execute a command after we're done */
if ($this->initially_was_account == $this->is_account) {
if ($this->is_modified) {