Code

Fixed fai classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Mar 2008 10:41:03 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 5 Mar 2008 10:41:03 +0000 (10:41 +0000)
-No overlapping searches anymore.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9345 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiTemplate.inc

index c00c14dc3f78321aeffe666442f9c8c58dcac89c..dc137feb83497e14c89c04cc24ed1046a051ebeb 100644 (file)
@@ -71,7 +71,11 @@ class faiHook extends plugin
       $ldap->cd ($this->dn);
       $ldap->search("(&(objectClass=FAIclass)(objectClass=".$this->subClass."))",array("dn"));
 
+      $data = array();
       while($object = $ldap->fetch()){
+        $data[] = $object;
+      }
+      foreach($data as $object){
 
         /* Set status for save management */
         $objects = array();
index c4a84f3814ca6dbf3a7252a076fd443db17c0ebc..41a2f3e182e3e6695949ae25bb450680fc35539f 100644 (file)
@@ -76,7 +76,12 @@ class faiScript extends plugin
       $ldap->cd ($this->dn);
       $ldap->search("(&(objectClass=FAIclass)(objectClass=".$this->subClass."))",$this->subAttributes);
 
+      $data = array();
       while($object = $ldap->fetch()){
+        $data[] = $object;
+      }
+      foreach($data as $object){
+
         /* Set status for save management */
         $objects = array();
         $objects['status']      = "FreshLoaded";
index 6a27eeca4cad45a8d2c07b504bbb006a39a86319..f70f91ae7aaa5745fe102ab77052ef5ea729fc36 100644 (file)
@@ -72,7 +72,11 @@ class faiTemplate extends plugin
       $ldap->cd ($this->dn);
       $ldap->search("(&(objectClass=FAIclass)(objectClass=".$this->subClass."))",array("dn"));
 
+      $data = array();
       while($object = $ldap->fetch()){
+        $data[] = $object;
+      }
+      foreach($data as $object){
 
         /* Set status for save management */
         $objects = array();