Code

Updated printGeneric.
[gosa.git] / plugins / admin / systems / class_ArpNewDevice.inc
index 763c4e8e37014c71b24f56c4a44e4fe4be30d72c..f2d7a754c3b637d907abf5051ae5a536ddc83dda 100644 (file)
@@ -11,9 +11,11 @@ class ArpNewDevice extends plugin
   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()
@@ -41,6 +43,9 @@ class ArpNewDevice extends plugin
   {
     $message= plugin::check();
     $message= array_merge($message, $this->netConfigDNS->check());
+    if(empty($this->cn)){
+      $message[] = _("Please specify a valid dns name.");
+    }
     return($message);
   }