From 26288c10ea8dfe0ac4a6e87c0cd38aaf15c35caa Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 10 Feb 2006 15:40:52 +0000 Subject: [PATCH] Added more optimizations. These have to be prooved... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2662 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/addressbook/class_addressbook.inc | 1 + plugins/admin/groups/class_groupGeneric.inc | 1 + plugins/admin/ogroups/class_ogroup.inc | 1 + plugins/admin/systems/class_servKolab.inc | 1 + plugins/personal/environment/class_environment.inc | 1 + 5 files changed, 5 insertions(+) diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc index 162a2f965..f116acfe7 100644 --- a/plugins/addons/addressbook/class_addressbook.inc +++ b/plugins/addons/addressbook/class_addressbook.inc @@ -644,6 +644,7 @@ class addressbook extends plugin /* Finally write data with selected 'mode' */ $ldap->cd ($this->dn); + $this->cleanup(); $ldap->$mode ($this->attrs); if (show_ldap_error($ldap->get_error())){ return (1); diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 2dde3c6ec..188b6b606 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -588,6 +588,7 @@ class group extends plugin /* Write back to ldap */ $ldap->cd($this->dn); + $this->cleanup(); $ldap->$mode($this->attrs); $ret= 0; diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index 136562a63..311f1746e 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -676,6 +676,7 @@ class ogroup extends plugin /* Write back to ldap */ $ldap->cd($this->dn); + $this->cleanup(); $ldap->$mode($this->attrs); /* Trigger post signal */ diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 87c65e765..9d317fa69 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -312,6 +312,7 @@ $ldap->modify ($attrs); /* Perform LDAP action */ $ldap->cd($this->dn); + $this->cleanup(); $ldap->$mode($this->attrs); show_ldap_error($ldap->get_error()); diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 3c97e19a6..bea0e0e45 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -1019,6 +1019,7 @@ $ldap->modify ($attrs); } $ldap->cd($this->dn); + $this->cleanup(); $ldap->$mode($this->attrs); if($ldap->get_error()!="Success"){ print_red($ldap->get_error()); -- 2.30.2