From: hickert Date: Thu, 10 Apr 2008 08:16:32 +0000 (+0000) Subject: Updated workstation generic X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ab8c183a7d2e15a5ad23d2dac462eb709e90972f;p=gosa.git Updated workstation generic -Fixed workstation ou detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10310 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 67f82aa26..2f9de0459 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -134,7 +134,7 @@ class workgeneric extends plugin $ui= get_userinfo(); $this->base= dn2base($ui->dn); } else { - $this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,/", "", $this->dn); + $this->base= preg_replace ("/^[^,]+,".normalizePreg(get_ou("workstationou"))."/i", "", $this->dn); } /* Create an array of all Syslog servers */