Code

Updated workstation generic
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 08:16:32 +0000 (08:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 08:16:32 +0000 (08:16 +0000)
-Fixed workstation ou detection

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

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

index 67f82aa26dd83ab286f404c324ccd0dedf20037d..2f9de0459bf31ff66338402f23bb62046d7ba627 100644 (file)
@@ -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 */