Code

Set DNS hidden if acount is disabled
[gosa.git] / plugins / personal / connectivity / class_pptpAccount.inc
index 6e1076dacef2c9defe7f3a05e345ae18f216fedc..c7ed311e85213813ea2ee0acfab60c7822dbf74d 100644 (file)
@@ -78,7 +78,9 @@ class pptpAccount extends plugin
       $ldap->cd($this->dn);
       @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
           $this->attributes, "Save");
-      $ldap->modify($this->attrs);
+      $this->cleanup();
+$ldap->modify ($this->attrs); 
+
       show_ldap_error($ldap->get_error());
 
       /* Optionally execute a command after we're done */
@@ -119,7 +121,9 @@ class pptpAccount extends plugin
       /* Write back to ldap */
       $ldap= $this->config->get_ldap_link();
       $ldap->cd($this->dn);
-      $ldap->modify($this->attrs);
+      $this->cleanup();
+$ldap->modify ($this->attrs); 
+
       show_ldap_error($ldap->get_error());
 
       /* Optionally execute a command after we're done */