diff --git a/www/auth/login-ldapmulti.php b/www/auth/login-ldapmulti.php
index 40ab188eda9855ebb0e71f5951f9ba116f125a6d..145de7c96da49d93f45aea02e066f7fc360481a8 100644
--- a/www/auth/login-ldapmulti.php
+++ b/www/auth/login-ldapmulti.php
@@ -51,7 +51,11 @@ if (isset($_POST['username'])) {
 		}
 		*/
 		if (!ldap_bind($ds, $dn, $pwd)) {
-			$error = "Bind failed, wrong username or password. Tried with DN=[" . $dn . "] DNPattern=[" .  $ldapconfig['dnpattern'] . "]";
+			$error = 'Bind failed, wrong username or password.' .
+				' Tried with DN=[' . $dn . '] DNPattern=[' .
+				$ldapconfig['dnpattern'] . '] Error=[' .
+				ldap_error($ds) . "] ErrNo=[" .
+				ldap_errno($ds) . "]";
 
 			$logger->log(LOG_NOTICE, $session->getTrackID(), 'AUTH', 'ldap-multi', 'Fail', $_POST['username'], $_POST['username'] . ' failed to authenticate');