From 149d69dddcf8c0cc543f37e34213434273fdb19e Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Feb 2010 10:14:16 +0000 Subject: [PATCH] Added base check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15532 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | 5 +++++ .../goto/admin/systems/goto/class_terminalGeneric.inc | 5 +++++ .../goto/admin/systems/goto/class_workstationGeneric.inc | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index 37970b76e..bd7531c92 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -734,6 +734,11 @@ class printgeneric extends plugin $message[]= msgPool::required(_("Name")); } + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base(); + } + /* must: cn */ if(($this->BelongsTo == "Printer") && !tests::is_dns_name($this->cn)){ $message[]= msgPool::invalid(_("Name")); diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 4737b7fde..7273fada3 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -428,6 +428,11 @@ class termgeneric extends plugin $message[]= msgPool::required(_("Name")); } + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base(); + } + /* Check if given name is a valid host/dns name */ if(!tests::is_dns_name($this->cn) ){ $message[] = msgPool::invalid(_("Name")); diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc index 08d898d06..9ade8d06d 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc @@ -442,6 +442,11 @@ class workgeneric extends plugin $message[] = msgPool::invalid(_("Name")); } + // 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