From 1fa8e5bb84f2fbf10e8a9b38bed3e9f54cf7d407 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Oct 2006 04:27:08 +0000 Subject: [PATCH] Fixed group base detection git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4941 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupGeneric.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.30.2