From: cajus Date: Mon, 1 Feb 2010 10:11:06 +0000 (+0000) Subject: System base checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=635c255fecad6a3e56388d7e89e72fe8467113fa;p=gosa.git System base checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15530 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index d26d53be6..bc0200caf 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -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); } diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 0e86949f3..030ba096f 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -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);