summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f876410)
raw | patch | inline | side by side (parent: f876410)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 13:52:05 +0000 (13:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 13:52:05 +0000 (13:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10331 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
index 7fe73099a5d0c1bf19be60d6815b4c39a8e7446b..1971c76a83e2495589a0acfb6476248138b36b0d 100644 (file)
var $cn= "";
var $description= "";
var $orig_dn= "";
+ var $orig_cn= "";
var $inheritTimeServer = true;
}
$this->orig_dn= $this->dn;
+ $this->orig_cn= $this->cn;
}
function set_acl_base($base)
unset($og->member[$this->dn]);
$og->save ();
}
+
+ /* Remove all accessTo/trust dependencies */
+ update_accessTo($this->cn,"");
}
/* Clean queue form entries with this mac
$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 */