summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b747aa7)
raw | patch | inline | side by side (parent: b747aa7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 13:51:40 +0000 (13:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Apr 2008 13:51:40 +0000 (13:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10330 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_servGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc
index 02f6106a30c7e8e1c55361f5c302266494a7e283..603e110af61355ae6104124b770d4aaf583fa1b8 100644 (file)
var $l= "";
var $description= "";
var $orig_dn= "";
+ var $orig_cn= "";
/* attribute list for save action */
var $attributes= array("cn", "description","gotoMode");
/* Save dn for later references */
$this->orig_dn= $this->dn;
+ $this->orig_cn= $this->cn;
}
$ldap= $this->config->get_ldap_link();
$ldap->rmdir($this->dn);
+ update_accessTo($this->orig_cn,"");
+
new log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
if (!$ldap->success()){
$ldap->modify ($this->attrs);
new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+ /* Update all accessTo/trust dependencies */
+ if($this->orig_cn != $this->cn){
+ update_accessTo($this->orig_cn,$this->cn);
+ }
+
$mode= "modify";
}
if (!$ldap->success()){