From 1c79b774ab561dd7f9d0fa9c4e9fa2a60b3f5c6e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Oct 2006 04:43:06 +0000 Subject: [PATCH] Fixed group base detection. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4942 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 3f87a2a17..a03f6a91e 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -154,7 +154,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