diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index 8ad0d12dacf1c381b97b36cbdfef7d87c27ca084..c1571e64fd349168ba9929d1ac93474f31066fe4 100644 (file)
var $objectclasses = array("goImapServer");
/* This class can't be assigned twice so it conflicts with itsself */
- var $conflicts = array("goImapServer");
var $DisplayName = "";
var $dn = NULL;
"goImapSieveServer","goImapSievePort",
"cyrusImap","cyrusImapSSL","cyrusPop3","cyrusPop3SSL");
- var $cn;
+ var $cn = "";
var $goImapName = "";
var $goImapConnect = "";
var $acl;
- var $Actions = array();
+ var $Actions = array();
+ var $conflicts = array("goImapServer","kolab");
function goImapServer($config,$dn)
{
$ldap->add($this->attrs);
}
show_ldap_error($ldap->get_error());
+ $this->handle_post_events("remove");
}
function save()
$ldap->add($this->attrs);
}
show_ldap_error($ldap->get_error());
+ if($this->initially_was_account){
+ $this->handle_post_events("modify");
+ }else{
+ $this->handle_post_events("add");
+ }
+
}
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");