From 8b63a2600a2bce4850a66b091bbfb0412bf3448f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 19 Jun 2008 09:34:27 +0000 Subject: [PATCH] Updated DAK. Only list server, we are allowed to view. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11366 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/dak/addons/dak/class_DAK.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/dak/addons/dak/class_DAK.inc b/gosa-plugins/dak/addons/dak/class_DAK.inc index 085bad7ad..79da99fb7 100644 --- a/gosa-plugins/dak/addons/dak/class_DAK.inc +++ b/gosa-plugins/dak/addons/dak/class_DAK.inc @@ -44,10 +44,11 @@ class DAK return; } $res = array(); - $ldap = $config->get_ldap_link(); - $ldap->cd($config->current['BASE']); - $ldap->search("(&(macAddress=*)(FAIrepository=*)(objectClass=FAIrepositoryServer))",array("cn","FAIrepository","macAddress")); - while($attrs = $ldap->fetch()){ + $rest = get_sub_list("(&(macAddress=*)(FAIrepository=*)(objectClass=FAIrepositoryServer))", + "server",get_ou("serverou"),$config->current['BASE'], + array("cn","FAIrepository","macAddress"),GL_SUBSEARCH); + + foreach($rest as $attrs){ $serv = array(); $serv['REPOSITORIES'] = array(); for($i = 0 ; $i < $attrs['FAIrepository']['count'] ; $i ++){ -- 2.30.2