Skip to content
Snippets Groups Projects
Commit 0c51d274 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

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
parent 7aa1a0fe
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ if (isset($_POST['username'])) { ...@@ -84,7 +84,7 @@ if (isset($_POST['username'])) {
exit; 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 = "Bind failed, wrong username or password. Tried with DN=[" . $dn . "] DNPattern=[" . $config->getValue('auth.ldap.dnpattern')
. "] Error=[" . ldap_error($ds) . "] ErrNo=[" . ldap_errno($ds) . "]"; . "] Error=[" . ldap_error($ds) . "] ErrNo=[" . ldap_errno($ds) . "]";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment