Code

Do not remove invalid user accounts.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 12:47:37 +0000 (12:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 12:47:37 +0000 (12:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@13005 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index 624ef38de48309b1343a4cdb972e972632cf1b02..9ee1fe167386d493d246de51a28c20a2b2362e30 100644 (file)
@@ -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"));