diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index ff48e3f6b9f663250f104495866d99650614c5f2..062ceb3aa4a75413b421c07782cedc5cc1399b5b 100644 (file)
plugin::remove_from_parent();
$ldap= $this->config->get_ldap_link();
+ if($ldap->dn_exists("ou=addr,".$this->dn)){
+ $ldap->rmdir_recursive("ou=addr,".$this->dn);
+ show_ldap_error($ldap->get_error());
+ }
+
$ldap->cd($this->dn);
@DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
$this->attributes, "Save");
$ldap->modify($this->attrs);
show_ldap_error($ldap->get_error());
- if($ldap->dn_exists("ou=addr,".$this->dn)){
- $ldap->rmdir("ou=addr,".$this->dn);
- show_ldap_error($ldap->get_error());
- }
/* Optionally execute a command after we're done */
$this->postremove();