From 14fc9a12f6c2cf3034b22d43b3e141be7748f065 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Mar 2008 11:54:12 +0000 Subject: [PATCH] Fixed faiManagment. -Release listing fixed. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 6e86f8e4e..013946e02 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -659,7 +659,12 @@ class faiManagement extends plugin $base= "ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase']; } $ldap->ls("(objectClass=FAIbranch)",$base); + $objects = array(); while($attrs = $ldap->fetch()){ + $objects[] = $attrs; + } + foreach($objects as $attrs){ + if((isset($attrs['ou']))&&($attrs['dn']!=$base)){ $ret[$attrs['dn']]= $prefix.$attrs['ou'][0]; $ret = array_merge($ret,$this->getBranches($attrs['dn'],"".$prefix.$attrs['ou'][0]."/")); -- 2.30.2