Skip to content

Commit

Permalink
Catch missing LDAP
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Feb 11, 2020
1 parent 76ac0bf commit 672a0d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/lib/munkireport/AuthAD.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public function login($login, $password)
{
$this->login = $login;
if ($login && $password) {

if( ! defined('LDAP_OPT_PROTOCOL_VERSION')){
error('LDAP authentication failed: PHP is missing the LDAP extension');
return false;
}

if (conf('debug'))
{
Expand Down

0 comments on commit 672a0d6

Please sign in to comment.