diff --git a/www/auth/login.php b/www/auth/login.php index d10af1a6060461d2fb3d82946f962bb4925299e2..289de746785d74ae4d4a7444c19561484786d7cc 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'); }