Code

Fixed group base detection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Oct 2006 04:27:08 +0000 (04:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Oct 2006 04:27:08 +0000 (04:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4941 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc

index f25a036f113d683530f88d3b50aa3349dc4d83cf..37c5c0babace3cdf386f028fe084e33f21807398 100644 (file)
@@ -155,7 +155,9 @@ class group extends plugin
         $this->base= dn2base($ui->dn);
       }
     } else {
-      $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
+
+      /* Get object base */
+      $this->base =preg_replace ("/^[^,]+,".normalizePreg(get_groups_ou())."/","",$this->dn);
     }
 
     /* This is always an account */