From: hickert Date: Thu, 26 Oct 2006 04:27:08 +0000 (+0000) Subject: Fixed group base detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1fa8e5bb84f2fbf10e8a9b38bed3e9f54cf7d407;p=gosa.git Fixed group base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4941 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index f25a036f1..37c5c0bab 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -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 */