From b2be9f201dd426b6f2a59077c784354ccd86dbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Thu, 8 Jan 2009 17:12:22 +0000 Subject: [PATCH] Wrong variable name for password git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1109 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 d10af1a60..289de7467 100644 --- a/www/auth/login.php +++ b/www/auth/login.php @@ -96,7 +96,7 @@ if (isset($_POST['username'])) { /* * Do LDAP bind using DN. */ - if (($pwd == "") or (!$ldap->bind($dn, $pwd))) { + if (($password == "") or (!$ldap->bind($dn, $password))) { SimpleSAML_Logger::info('AUTH - ldap: '. $username . ' failed to authenticate. DN=' . $dn); throw new Exception('error_wrongpassword'); } -- GitLab