diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc
index c8007515121b5548def92c9778e57766ce466dea..95fe64bd990561767d71dc2805a2bf23793e3fc7 100644 (file)
var $objectclasses = array("goMailServer");
/* This class can't be assigned twice so it conflicts with itsself */
- var $conflicts = array("goMailServer");
-
var $DisplayName = "";
var $dn = NULL;
var $StatusFlag = "goMailServerStatus";
var $RestrictionFilters = array();
var $TransportProtocols = array();
var $Actions = array();
-
+ var $cn = "";
+ var $conflicts = array("goMailServer","kolab");
function goMailServer($config,$dn)
{
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");