summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e95628a)
raw | patch | inline | side by side (parent: e95628a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Apr 2008 09:29:14 +0000 (09:29 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Apr 2008 09:29:14 +0000 (09:29 +0000) |
-Store Mac and IP from parent object if this printer belongs to a ws or a terminal
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10295 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10295 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc
index deb66ff97805fe6f080ff1899011a66cedc3dde3..a3d5bb282700f7c88c20fa5528de9e94745a02e9 100644 (file)
if($this->parent->by_object['workgeneric']->cn == "wdefault"){
return;
}
+
+ /* Adapt IP & mac from parent object */
+ $this->netConfigDNS->ipHostNumber = $this->parent->by_object['workgeneric']->netConfigDNS->ipHostNumber;
+ $this->netConfigDNS->macAddress = $this->parent->by_object['workgeneric']->netConfigDNS->macAddress;
+
}elseif(isset($this->parent->by_object['termgeneric'])){
if($this->parent->by_object['termgeneric']->cn == "default"){
return;
}
+
+ /* Adapt IP & mac from parent object */
+ $this->netConfigDNS->ipHostNumber = $this->parent->by_object['termgeneric']->netConfigDNS->ipHostNumber;
+ $this->netConfigDNS->macAddress = $this->parent->by_object['termgeneric']->netConfigDNS->macAddress;
}
/* If type is still unknown, the initialisation of this printer failed, abort. */
msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
}
- if(preg_match("/printer/i",$this->BelongsTo)){
+ #if(preg_match("/printer/i",$this->BelongsTo)){
$this->netConfigDNS->cn = $this->cn;
$this->netConfigDNS->dn = $this->dn;
$this->netConfigDNS->save();
- }
+ #}
}
function generateList(){