diff --git a/www/auth/login.php b/www/auth/login.php
index 0839269495f3198aab49e9b6cf2d097adf38caa3..4e9b8882cf0a9e2a8a8e024c5b486d32012414fe 100644
--- a/www/auth/login.php
+++ b/www/auth/login.php
@@ -84,7 +84,7 @@ if (isset($_POST['username'])) {
 		exit;
 		}
 		*/
-		if (!ldap_bind($ds, $dn, $password)) {
+		if (!@ldap_bind($ds, $dn, $password)) {
 			$error = "Bind failed, wrong username or password. Tried with DN=[" . $dn . "] DNPattern=[" . $config->getValue('auth.ldap.dnpattern')
 				. "] Error=[" . ldap_error($ds) . "] ErrNo=[" . ldap_errno($ds) . "]";