diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index a92a9cbb7d7295c5e3857d5177064f7049e1ebf6..099788aad5a4abc1fb1cc5e6a981da7e1ad0893d 100644 (file)
if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){
$message[]= msgPool::invalid(_("Vendor ID"),"","","0x1234");
}
-
+
/* Check if entry already exists */
- if($this->cn != $this->orig_cn){
+ if($this->cn != $this->orig_cn || $this->dn == "new"){
$ldap = $this->config->get_ldap_link();
$ldap->search("(&(objectClass=gotoDevice)(cn=".$this->cn."*))",array("cn"));
if($ldap->count()){