From 66268862fa419104421c74baaad31e2a3d6cc467 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Jul 2006 11:51:30 +0000 Subject: [PATCH] Use get_list to fetch all gotoShare objects, else gosaUnitTag will be ignored git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 09024297c..473319751 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -666,10 +666,12 @@ class config { /* This function returns all available ShareServer */ function getShareServerList() { - $ldap= $this->get_ldap_link(); - $a_res = $ldap->search("(&(objectClass=goShareServer)(goExportEntry=*))",array("goExportEntry","cn")); - $return= array(); - while($entry = $ldap->fetch($a_res)){ + global $config; + $return = array(); + $ui = get_userinfo(); + $base = $config->current['BASE']; + $res = get_list("(&(objectClass=goShareServer)(goExportEntry=*))",$ui->subtreeACL,$base,array("goExportEntry","cn"),GL_SUBSEARCH); + foreach($res as $entry){ if(isset($entry['goExportEntry']['count'])){ unset($entry['goExportEntry']['count']); } @@ -678,6 +680,7 @@ class config { $sharename = $a_share[0]; $return[$entry['cn'][0]."|".$sharename] = $entry['cn'][0]." [".$sharename."]"; } + } return($return); } -- 2.30.2