From: hickert Date: Thu, 14 Sep 2006 11:15:24 +0000 (+0000) Subject: Set workstation mac for printer too X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39f4bfd9ec85c85236303d282423c1d36ae2654c;p=gosa.git Set workstation mac for printer too git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4660 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 705302820..f032f5afc 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -661,6 +661,8 @@ class printgeneric extends plugin if($this->BelongsTo == "Workstation"){ $this->dn= preg_replace("/ou=workstations,/","ou=printers,",$this->dn); + $mac = $this->parent->by_object['workgeneric']->netConfigDNS->macAddress; + $this->netConfigDNS->macAddress = $mac; } if(!$this->is_account) return; @@ -772,6 +774,7 @@ class printgeneric extends plugin } show_ldap_error($ldap->get_error(), _("Saving printer failed")); + $this->netConfigDNS->cn = $this->cn; $this->netConfigDNS->dn = $this->dn; $this->netConfigDNS->save($this->dn);