mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Added dbg_error_log() calls for error msgs
If the ldap driver is not valid, the error messages were not printed. There was just "Couldn't contact LDAP server for authentication" - But why? This commit adds a print loop for all messages from the global $c->messages message array.
This commit is contained in:
parent
72dc5b1f39
commit
1f21370b20
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user