diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 341dc15a86b0b2cfe285a0ca0cb18c0b4516020c..ca1333fbdd7e8625559f7a7a58c2bd2f178f0238 100644 (file)
$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) && chkacl ($this->acl, "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);