diff --git a/plugins/addons/dashboard/class_dashBoard.inc b/plugins/addons/dashboard/class_dashBoard.inc
index cb9ec8c49164fa700e1b2a134fe95ea3ce335fe1..70ca58bff59eef804b582cfd0ee82cad4f0ce28b 100644
--- a/plugins/addons/dashboard/class_dashBoard.inc
+++ b/plugins/addons/dashboard/class_dashBoard.inc
@@ -70,7 +70,11 @@ class dashboard extends simplePlugin
         $nb = objects::count($type);
       } catch (FusionDirectoryException $e) {
         $nb = 0;
-        trigger_error("Problem with $type:".$e->getMessage());
+        msg_dialog::display(
+          _('LDAP error'),
+          sprintf(_('Statistics for type "%s" could not be computed because of the following error: %s'), $type, $e->getMessage()),
+          ERROR_DIALOG
+        );
       }
       if ($nb == 0) {
         continue;
diff --git a/plugins/addons/dashboard/class_dashBoardPasswords.inc b/plugins/addons/dashboard/class_dashBoardPasswords.inc
index 62bccae29611a2017eed15468f5e151b151aa46c..bc95b0c64ae70ddded506ed8507bb51e240c521a 100644
--- a/plugins/addons/dashboard/class_dashBoardPasswords.inc
+++ b/plugins/addons/dashboard/class_dashBoardPasswords.inc
@@ -55,7 +55,16 @@ class dashboardPassword extends simplePlugin
 
     $defaultMethod = $config->get_cfg_value('passwordDefaultHash', 'ssha');
     $forceDefault = ($config->get_cfg_value('forcePasswordDefaultHash', 'FALSE') == 'TRUE');
-    $users = objects::ls('user', 'userPassword');
+    try {
+      $users = objects::ls('user', 'userPassword');
+    } catch (LDAPFailureException $e) {
+      msg_dialog::display(
+        _('LDAP error'),
+        sprintf(_('Password statistics could not be computed because of the following LDAP error: %s'), $e->getMessage()),
+        ERROR_DIALOG
+      );
+      $users = array();
+    }
     $nb_accounts = count($users);
     $nb_locked_accounts = 0;
     $methods_stats = array();
diff --git a/plugins/addons/dashboard/class_dashBoardUsers.inc b/plugins/addons/dashboard/class_dashBoardUsers.inc
index 79a637fa44fe97673e205e5f43f3f5af8b91642d..65aefce189cb1fa2cc838d8b4c1850c8d037f782 100644
--- a/plugins/addons/dashboard/class_dashBoardUsers.inc
+++ b/plugins/addons/dashboard/class_dashBoardUsers.inc
@@ -66,7 +66,16 @@ class dashboardUsers extends simplePlugin
   {
     global $config;
     /* User statistics */
-    $nb_accounts = objects::count('user');
+    try {
+      $nb_accounts = objects::count('user');
+    } catch (LDAPFailureException $e) {
+      msg_dialog::display(
+        _('LDAP error'),
+        sprintf(_('Total user number could not be computed because of the following LDAP error: %s'), $e->getMessage()),
+        ERROR_DIALOG
+      );
+      $nb_accounts = 0;
+    }
 
     $ldap = $config->get_ldap_link();
     $ldap->cd($config->current['BASE']);