From: hickert Date: Thu, 19 Jun 2008 09:34:27 +0000 (+0000) Subject: Updated DAK. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b63a2600a2bce4850a66b091bbfb0412bf3448f;p=gosa.git 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 --- 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 ++){