From 61a1b7b01a643fb3c7fbc123458736fe9be81962 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Dec 2006 07:56:51 +0000 Subject: [PATCH] Only search for FAIrelease if FAI is activated. If FAI.schema is not included within slapd, and we search for attribute FAIrelease, we won't see any groups.. i don't know why. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5330 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/groups/class_groupManagement.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc index ed891cc59..002cbb788 100644 --- a/plugins/admin/groups/class_groupManagement.inc +++ b/plugins/admin/groups/class_groupManagement.inc @@ -428,9 +428,15 @@ class groupManagement extends plugin /******************** Search for the prepared filter ********************/ - + + /* Attributes to search for */ + $attrs = array("cn", "description", "gidNumber", "objectClass"); + /* If subsearch is activated search for subobjects too */ - $attrs = array("cn", "description", "gidNumber", "objectClass","FAIrelease"); + $tmp = search_config($this->config->data,"faiManagement","CLASS"); + if(!empty($tmp)){ + $attrs [] = "FAIrelease"; + } if ($SubSearch){ $res= get_list($filter, $this->ui->subtreeACL, $base, $attrs, GL_SIZELIMIT| GL_SUBSEARCH); -- 2.30.2