From: hickert Date: Tue, 11 Nov 2008 12:47:37 +0000 (+0000) Subject: Do not remove invalid user accounts. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=343367db13017701f67f4d3ed11eae1fbc25dfa2;p=gosa.git Do not remove invalid user accounts. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13005 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 624ef38de..9ee1fe167 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -578,6 +578,8 @@ class user extends plugin /* remove object from parent */ function remove_from_parent() { + if(!$this->initially_was_account) return; + $ldap= $this->config->get_ldap_link(); $ldap->rmdir ($this->dn); show_ldap_error($ldap->get_error(), _("Removing generic user account failed"));