Code

Set DNS hidden if acount is disabled
[gosa.git] / plugins / personal / connectivity / class_intranetAccount.inc
index 067b3ed07d143fc1dbf2ef40551a3aa74fb89ed4..6b0638ace7cc74f5d99d037b3bf8db8f97c6e780 100644 (file)
@@ -96,7 +96,9 @@ class intranetAccount 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 */
@@ -149,7 +151,9 @@ class intranetAccount 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 */