diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index a6665297..144abadd 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -328,6 +328,9 @@ function LDAP_check($username, $password ){ $ldapDriver = getStaticLdap(); if ( !$ldapDriver->valid ) { dbg_error_log( "ERROR", "Couldn't contact LDAP server for authentication" ); + foreach($c->messages as $msg) { + dbg_error_log( "ERROR", "-> ".$msg ); + } header( sprintf("HTTP/1.1 %d %s", 503, translate("Authentication server unavailable.")) ); exit(0); }