From eaff4ebdad126c27e2ceadc8180c7c415bcbc5a5 Mon Sep 17 00:00:00 2001 From: psc Date: Mon, 29 Jun 2009 13:10:43 +0000 Subject: [PATCH] Limit scope of get_child_objects and some cosmetic changes. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13820 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-plugins/fai/admin/fai/class_FAI.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc index 2a1dfe0da..605acb8df 100644 --- a/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/trunk/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -1303,7 +1303,7 @@ class FAI } } - /* Return a child objects, if there are any */ + /* Return child objects, if there are any */ static function get_child_objects($dn) { global $config; @@ -1312,10 +1312,9 @@ class FAI if (FAI::is_parent_object($Current_DN)){ $ldap = $config->get_ldap_link(); - $ldap->cd($config->current['BASE']); + $ldap->cd($dn); $ldap->search("(objectClass=FAIclass)",array("dn")); while($attrs = $ldap->fetch()){ - $newdn=$attrs['dn']; if(preg_match("/".preg_quote($Current_DN, '/')."/",$attrs['dn']) && $attrs['dn'] != $Current_DN){ $children[] = $attrs['dn']; } -- 2.30.2