Code

Patch for #6056
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Dec 2010 10:21:14 +0000 (10:21 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Dec 2010 10:21:14 +0000 (10:21 +0000)
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

trunk/gosa-core/plugins/admin/ogroups/class_ogroup.inc

index a9695489a1ebb7869c78c94f77d333ba003ca063..8e1d17061b1b010df278a2b9a9aae3e0902f1ee3 100644 (file)
@@ -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);
       }