Code

Added more optimizations. These have to be prooved...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Feb 2006 15:40:52 +0000 (15:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Feb 2006 15:40:52 +0000 (15:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2662 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc
plugins/admin/groups/class_groupGeneric.inc
plugins/admin/ogroups/class_ogroup.inc
plugins/admin/systems/class_servKolab.inc
plugins/personal/environment/class_environment.inc

index 162a2f965784c77161844713196ae763dc61d319..f116acfe721ac8c314781d6b9ae401b5740b8178 100644 (file)
@@ -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);
index 2dde3c6ecc37f415ea89c2f9f8e90565186d3386..188b6b6061909ff26a74ebd30f4cc383982d07f8 100644 (file)
@@ -588,6 +588,7 @@ class group extends plugin
 
     /* Write back to ldap */
     $ldap->cd($this->dn);
+    $this->cleanup();
     $ldap->$mode($this->attrs);
 
     $ret= 0;
index 136562a6308b0383e877bc82469b7847e8873365..311f1746e41325b76bbbe0ec3eccf5a21f6a02d0 100644 (file)
@@ -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 */
index 87c65e76539247f46fcc64763d87c134a7a76cc3..9d317fa69207185710eae94dec6953bdcdeb4197 100644 (file)
@@ -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());
     
index 3c97e19a68e9332f3bae7a606594e429bad10162..bea0e0e457245ab2b6a38cf95b2cec6fecf62fb6 100644 (file)
@@ -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());