diff --git a/plugins/admin/systems/class_ArpNewDevice.inc b/plugins/admin/systems/class_ArpNewDevice.inc
index 763c4e8e37014c71b24f56c4a44e4fe4be30d72c..f2d7a754c3b637d907abf5051ae5a536ddc83dda 100644 (file)
function ArpNewDevice ($config, $dn= NULL, $parent= NULL)
{
plugin :: plugin($config,$dn);
+ $this->cn ="";
$this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
$this->acl = "#all#";
$this->netConfigDNS->acl = $this->acl;
+ $this->netConfigDNS->force_dns();
}
function execute()
{
$message= plugin::check();
$message= array_merge($message, $this->netConfigDNS->check());
+ if(empty($this->cn)){
+ $message[] = _("Please specify a valid dns name.");
+ }
return($message);
}