From 343367db13017701f67f4d3ed11eae1fbc25dfa2 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Nov 2008 12:47:37 +0000 Subject: [PATCH] Do not remove invalid user accounts. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13005 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 2 ++ 1 file changed, 2 insertions(+) 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")); -- 2.30.2