summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 03aa0e7)
raw | patch | inline | side by side (parent: 03aa0e7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Oct 2007 13:10:48 +0000 (13:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Oct 2007 13:10:48 +0000 (13:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7604 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_termDNS.inc | patch | blob | history |
index acc3ba3cb33b2a7cc67aa9ec3afe6494083efad5..f242f3e2f02ebc531a75933f90929716535a5ed0 100644 (file)
$message= plugin::check();
if($this->dhcpEnabled && $this->dhcp_is_Account && $this->dhcpParentNode != "" && count($this->dhcpHostEntry) == 0){
- $message[] =_("You have not configured your dhcp settings yet.");
+# $message[] =_("You have not configured your dhcp settings yet.");
}
/* Check if ip must be given
/* New entry */
if($this->dhcpEnabled){
+ if(count($this->dhcpHostEntry) == 0){
+ $this->dialog = new dhcpHost($this->dhcpParentNode,TRUE);
+ $this->dialog->cn = $this->cn;
+ $this->dialog->dhcpHWAddress = "ethernet ".$this->macAddress;
+ if(!empty($this->ipHostNumber)){
+ $this->dialog->statements['fixed-address'] = $this->ipHostNumber;
+ }
+ $this->dialog->execute();
+ $this->dialog->save_object();
+ $this->dhcpHostEntry = $this->dialog->save();
+ if(count($this->dhcpHostEntry['dhcpOption']) == 0){
+ $this->dhcpHostEntry['dhcpOption']= array("host-name ".$this->cn);
+ }
+ }
+
/* Write mac address to dhcp settings */
if($this->dhcp_is_Account){
if(!isset($this->dhcpHostEntry['dhcpHWAddress'][0]) ||