summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5953c2c)
raw | patch | inline | side by side (parent: 5953c2c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 10:08:54 +0000 (10:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 10:08:54 +0000 (10:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12419 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationService.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
index d9580d3b9bea6956ab599a957dda7da3dba6e8b4..fe3d0e5b34588213fc14ac97430422df93438b8e 100644 (file)
*/
$p = $this->parent->by_object['ogroup'];
foreach($p->memberList as $dn => $obj){
+ if(preg_match("/".normalizePreg(get_ou("incomingou"))."/",$dn)) continue;
if(isset($p->objcache[$dn]['macAddress']) && !empty($p->objcache[$dn]['macAddress'])){
$macs[] = $p->objcache[$dn]['macAddress'];
}
/* We are a workstation. Add current mac.
*/
$mac = $this->parent->by_object['workgeneric']->netConfigDNS->macAddress;
- if(!empty($mac)){
+ if(!empty($mac) && !preg_match("/".normalizePreg(get_ou("incomingou"))."/",$this->orig_dn)){
$macs[] = $mac;
}
}