diff --git a/include/class_ldap.inc b/include/class_ldap.inc
index f259550e89e3ced0846d0a4875f239e0f9d40c49..d7bd98c2d2c7194418d15057c4836e3d1cd7152c 100644
--- a/include/class_ldap.inc
+++ b/include/class_ldap.inc
@@ -998,7 +998,7 @@ class LDAP
           logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $na, 'Content');
           logging::debug(DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__, $this->get_error(), 'LDAP error');
 
-          throw new SimplePluginLdapError(NULL, $cdn, LDAP_ADD, $this->get_error(), $this->get_errno());
+          throw new FusionDirectoryLdapError($cdn, LDAP_ADD, $this->get_error(), $this->get_errno());
         }
       }
     }
@@ -1358,7 +1358,7 @@ class LDAP
     }
 
     if (!$this->success()) {
-      $error = new SimplePluginLdapError(NULL, $dn, $operation, $this->get_error(), $this->get_errno());
+      $error = new FusionDirectoryLdapError($dn, $operation, $this->get_error(), $this->get_errno());
       $error->display();
     }