Code

Updated some vars
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jun 2006 04:48:16 +0000 (04:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Jun 2006 04:48:16 +0000 (04:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3722 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goFaxServer.inc
plugins/admin/systems/class_goImapServer.inc
plugins/admin/systems/class_goSyslogServer.inc
plugins/admin/systems/class_serverService.inc

index 55a76a56a2bef7bf54f17146d93e5b4b1fee0270..8572f6dfafd29cfa8de555f1c1fa8e72548dba97 100644 (file)
@@ -21,7 +21,7 @@ class goFaxServer extends plugin{
   var $goFaxAdmin         = "";
   var $goFaxPassword      = "";
   var $goFaxServerStatus  = "";
-  var $cn;
+  var $cn                 = "";
  
   function goFaxServer($config,$dn)
   {
index 53e1688c46c55b0b0d9b8bd411c04a3a35185231..cd4bf05786488f63a6f7760e32c0e78e5f9637a6 100644 (file)
@@ -20,7 +20,7 @@ class goImapServer extends plugin{
                                 "goImapSieveServer","goImapSievePort",
                                 "cyrusImap","cyrusImapSSL","cyrusPop3","cyrusPop3SSL");
 
-  var $cn;
+  var $cn                   = "";
 
   var $goImapName           = "";
   var $goImapConnect        = "";
index 76fc036353438d06276d4e20ba3e87ac22705911..a84670e21da55345136a2cbb19aeedb797e56dcc 100644 (file)
@@ -17,7 +17,7 @@ class goSyslogServer extends plugin{
   var $DisplayName      = "";
   var $dn               = NULL;
   var $acl;
-  var $cn;
+  var $cn                    = "";
   var $goSyslogServerStatus  = "";
  
   function goSyslogServer($config,$dn)
index a76c0d9d5db4d3dfc1c1bb8e4413d13625d39ba4..34b66573ed11e816a54f9bd020a90fdbc447cf78 100644 (file)
@@ -274,13 +274,24 @@ class ServerService extends plugin
       return;
     }
     
+    $caseVars = array("cn","dn");
     if($service == ALL_SERVICES){
       foreach($this->plugins as $name => $obj){
+        foreach($caseVars as $var){
+          if(isset($this->$var)){
+            $this->plugins[$name]->$var = $this->$var;  
+          }
+        }
         if($this->plugins[$name]->initially_was_account && $this->plugins[$name]->is_account){
           $this->plugins[$name]->setStatus($action);
         }
       }
     }else{
+      foreach($caseVars as $var){
+        if(isset($this->$var)){
+          $this->plugins[$service]->$var = $this->$var;  
+        }
+      }
       if($this->plugins[$service]->is_account){
         $this->plugins[$service]->setStatus($action);
       }