From 635c255fecad6a3e56388d7e89e72fe8467113fa Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Feb 2010 10:11:06 +0000 Subject: [PATCH] System base checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15530 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_componentGeneric.inc | 5 +++++ gosa-plugins/systems/admin/systems/class_servGeneric.inc | 5 +++++ 2 files changed, 10 insertions(+) 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); -- 2.30.2