From: psc Date: Fri, 3 Dec 2010 10:21:14 +0000 (+0000) Subject: Patch for #6056 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=63a76a65d03f8296304af2ca42a539ae55b28064;p=gosa.git Patch for #6056 When building the list of workstations which are already a member of an object group, properly encode the member DN via LDAP::convert() to avoid problems with workstations from OUs which include slashes. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20514 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc index a9695489a..8e1d17061 100644 --- a/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -162,7 +162,7 @@ class ogroup extends plugin $this->used_workstations = array(); foreach($res as $og){ if($og['dn'] == $this->dn) continue; - $test = array_intersect($ws_dns,$og['member']); + $test = array_intersect($ws_dns,LDAP::convert($og['member'])); if(($og['gosaGroupObjects'][0] == "[W]" || $og['gosaGroupObjects'][0] == "[T]") && count($test)){ $this->used_workstations = array_merge($this->used_workstations,$test); }