From 221da2ebf65862cd19231e1854bc65ab5edc8685 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 10 Apr 2008 13:52:05 +0000 Subject: [PATCH] Added update of accessTo objects git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10331 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/class_terminalGeneric.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc index 7fe73099a..1971c76a8 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc @@ -29,6 +29,7 @@ class termgeneric extends plugin var $cn= ""; var $description= ""; var $orig_dn= ""; + var $orig_cn= ""; var $inheritTimeServer = true; @@ -130,6 +131,7 @@ class termgeneric extends plugin } $this->orig_dn= $this->dn; + $this->orig_cn= $this->cn; } function set_acl_base($base) @@ -330,6 +332,9 @@ class termgeneric extends plugin unset($og->member[$this->dn]); $og->save (); } + + /* Remove all accessTo/trust dependencies */ + update_accessTo($this->cn,""); } /* Clean queue form entries with this mac @@ -503,6 +508,11 @@ class termgeneric extends plugin $ldap->modify ($this->attrs); new log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); + + /* Update all accessTo/trust dependencies */ + if($this->orig_cn != $this->cn){ + update_accessTo($this->orig_cn,$this->cn); + } } /* cn=default and macAddress=- indicates that this is a template */ -- 2.30.2