Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_workstationGeneric.inc
index 5b5a58a6c54cd1c54800664159b908cebb789cd3..eb389834517f25e228f58c0b8f29d779a7d329c6 100644 (file)
@@ -435,6 +435,11 @@ class workgeneric extends plugin
       $message[]= _("The required field 'Workstation name' is not set.");
     }
 
+    /* Check if given name is a valid host/dns name */
+    if(!is_dns_name($this->cn)){
+      $message[] = _("Please specify a valid name for this object.");
+    }
+
     if ($this->orig_dn != $this->dn){
       $ldap= $this->config->get_ldap_link();
       $ldap->cd ($this->base);