Merge pull request #13 from matthiasbeyer/ldap_error_output

Added dbg_error_log() calls for error msgs
This commit is contained in:
Andrew Ruthven 2013-09-23 03:02:45 -07:00
commit 5f2a7eb1d3

View File

@ -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);
}