From: cajus Date: Mon, 4 Jun 2007 14:18:00 +0000 (+0000) Subject: Added strict units to server lists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=266427ddf38d411973b7d000ed10441eb977341a;p=gosa.git Added strict units to server lists git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6541 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 1b5e032af..be645996f 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -154,8 +154,10 @@ class workstartup extends plugin ['PACKAGES'][0] "pkg1"; ['PACKAGES'][1] "postfix"; */ - - $ldap->search("(&(FAIrepository=*)(objectClass=FAIrepositoryServer))",array("FAIrepository")); + $filter= ""; + $ui= get_userinfo(); + if (isset($config->current['STRICT_UNITS']) && preg_match('/TRUE/i', $config->current['STRICT_UNITS']) && $ui->gosaUnitTag != ""){ $filter= "(gosaUnitTag=".$ui->gosaUnitTag.")"; + } $ldap->search("(&(FAIrepository=*)(objectClass=FAIrepositoryServer)$filter)",array("FAIrepository")); $test = array(); while($attr = $ldap->fetch()){ if(isset($attr['FAIrepository'])){