From 0c51d27476d342a42d90d4c4a76da463269f7179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Mon, 28 Jan 2008 12:26:44 +0000 Subject: [PATCH] Discarding error message from LDAP, instead of showing it to the user. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@198 44740490-163a-0410-bde0-09ae8108e29a --- www/auth/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/auth/login.php b/www/auth/login.php index 083926949..4e9b8882c 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) . "]"; -- GitLab