From 39f4bfd9ec85c85236303d282423c1d36ae2654c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 14 Sep 2006 11:15:24 +0000 Subject: [PATCH] Set workstation mac for printer too git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4660 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2