Code

Updated workstation startup
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 13:06:09 +0000 (13:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 13:06:09 +0000 (13:06 +0000)
-Send reload_ldap event for servers too

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10303 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index 24bb9adb10a675af00d40224c76af241affc7bb6..bcbccbd9bb4285d1b50fcc8481d6f43090469cd0 100644 (file)
@@ -942,6 +942,14 @@ class workstartup extends plugin
           if(!empty($mac)){
             $macs[] = $mac;
           }          
+        }elseif(isset($this->parent->by_object['servgeneric']->netConfigDNS->macAddress)){
+
+          /* We are a server. Add current mac.
+           */
+          $mac = $this->parent->by_object['servgeneric']->netConfigDNS->macAddress;
+          if(!empty($mac)){
+            $macs[] = $mac;
+          }          
         }
 
         /* Trigger event for all member objects