Code

System base checks
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 10:11:06 +0000 (10:11 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 10:11:06 +0000 (10:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15530 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_componentGeneric.inc
gosa-plugins/systems/admin/systems/class_servGeneric.inc

index d26d53be63ce27a55a87aa35aa27a57ad5259635..bc0200caf140bab49df7507e6ecc4173d7ea83de 100644 (file)
@@ -226,6 +226,11 @@ class componentGeneric extends plugin
       $message[] = msgPool::permMove();
     }
 
+    // Check if a wrong base was supplied
+    if(!$this->baseSelector->checkLastBaseUpdate()){
+      $message[]= msgPool::check_base();;
+    }
+
     return ($message);
   }
 
index 0e86949f32a7dd468cf7ce40339b6c97a168c599..030ba096fff0db36d997cca67db0494da471c134 100644 (file)
@@ -325,6 +325,11 @@ class servgeneric extends plugin
       $message[]= msgPool::invalid(_("Server name"), $this->cn, "/[a-z0-9\.\-]/i");
     }
 
+    // Check if a wrong base was supplied
+    if(!$this->baseSelector->checkLastBaseUpdate()){
+      $message[]= msgPool::check_base();;
+    }
+
     if ($this->orig_dn != $this->dn){
       $ldap= $this->config->get_ldap_link();
       $ldap->cd ($this->base);