Code

Updated FAI stuff
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Apr 2008 12:52:11 +0000 (12:52 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Apr 2008 12:52:11 +0000 (12:52 +0000)
-Removed Special tabs, because this tabs can't save their data if this object is inherited from an earlier release.
  it does not exists in this case.
-Fixed ldap errors.

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

14 files changed:
gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiPackage.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiProfile.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc
gosa-plugins/fai/admin/fai/tabsHook.inc
gosa-plugins/fai/admin/fai/tabsPackage.inc
gosa-plugins/fai/admin/fai/tabsPartition.inc
gosa-plugins/fai/admin/fai/tabsProfile.inc
gosa-plugins/fai/admin/fai/tabsScript.inc
gosa-plugins/fai/admin/fai/tabsTemplate.inc
gosa-plugins/fai/admin/fai/tabsVariable.inc

index d509e4a278d9dc88151100d4afc4f050888a11eb..82e14b4a869b5a62c337161612535e1aa9758c5c 100644 (file)
@@ -465,9 +465,6 @@ class faiHook extends plugin
     $ldap = $this->config->get_ldap_link();
 
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
 
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index d76d2dd78824ab3f3af4ee5214a17708b1e99ad7..075d80072cd1d10b90dac6ad6c1ee53d1f7189d1 100644 (file)
@@ -471,9 +471,6 @@ class faiPackage extends plugin
     }
 
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
     
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index 161deb2c56bdace1c7877eeaa18f4ec1e5448ca9..2ef87bc1f8d696f5b36d15561f951df0bcbafd6e 100644 (file)
@@ -410,9 +410,6 @@ class faiPartitionTable extends plugin
     $ldap = $this->config->get_ldap_link();
 
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
 
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index 4eec15fa08e45db57e0560f2c280062199e93306..9fb9ae0f7272e50e21d773c686c5f078333de1a3 100644 (file)
@@ -442,10 +442,6 @@ class faiProfile extends plugin
     }else{
       new log("create","fai/".get_class($this),$this->dn,$this->attributes);
     }
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
   }
 
 
index ce8a710a4f6ae59f2dd49e004811aae98a799996..331ca3799ca77faf0c112dba4ec709dd1d454202 100644 (file)
@@ -512,9 +512,6 @@ class faiScript extends plugin
     $ldap = $this->config->get_ldap_link();
 
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
 
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index 23f43c33e871d2848f5afb4f604b45b27a4112a6..0fdd00ed4501e00306374b2fe785753254ed43b0 100644 (file)
@@ -442,9 +442,6 @@ class faiTemplate extends plugin
     $ldap = $this->config->get_ldap_link();
 
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
 
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index e13a8f38bfcd64c87972840442481ff34f2f9b17..1c819c09641bd1b0bc31347de38548201ae4dcbd 100644 (file)
@@ -332,9 +332,6 @@ class faiVariable extends plugin
  
     $ldap = $this->config->get_ldap_link();
     FAI::prepare_to_save_FAI_object($this->dn,$this->attrs);
-    if (!$ldap->success()){
-      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
-    }
 
     if($this->initially_was_account){
       new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
index bf4709073631d29eb91e816d0716096663fead5e..ad41dbdf84e1e1aea0e284e3b2877faccba40243 100644 (file)
@@ -8,7 +8,7 @@ class tabsHook extends tabs
   {
        tabs::tabs($config, $data, $dn,$category);
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index 94dca4e2001ff51633b077804d06ff91e1ba1cab..197f86370caf39ce737a247e10cbf2c0e90bd435 100644 (file)
@@ -9,7 +9,7 @@ class tabsPackage extends tabs
        tabs::tabs($config, $data, $dn,$category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index 9d409e6c73090f429d6641a3ff07b1c348fdd03b..b1aab1e09bbf2a946996d0497beb9d6f7ff2356c 100644 (file)
@@ -9,7 +9,7 @@ class tabsPartition extends tabs
        tabs::tabs($config, $data, $dn,$category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index f67b22c0cf7c8aa6a231a0e998428e6640714ba3..64fc7025c1aa74b4d5773c0a5e8beb9edebbe6e0 100644 (file)
@@ -9,7 +9,7 @@ class tabsProfile extends tabs
        tabs::tabs($config, $data, $dn,$category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index eb283a2c64092b8eb47dea6e026efa5798732247..01cafc149cd0b38251ae2afd5f7100bb5d315aaf 100644 (file)
@@ -9,7 +9,7 @@ class tabsScript extends tabs
        tabs::tabs($config, $data, $dn,$category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index 8b1af36e39ab540a766b223941e7646bb00d91ee..3c8576e3c9a9e1a40a8fc4c974f13f1e77a4707a 100644 (file)
@@ -9,7 +9,7 @@ class tabsTemplate extends tabs
        tabs::tabs($config, $data, $dn, $category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
index c0476577e8abcaa0f357125ba4855f8e6b46d2e2..0a4dcfbc6e9de0d95e4fd08beb81426354eefaf9 100644 (file)
@@ -9,7 +9,7 @@ class tabsVariable extends tabs
        tabs::tabs($config, $data, $dn, $category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)