Unverified Commit 854c193f authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #1045 from racke/pr/ldap-logerror by racke

Add actual error to the log if connection to LDAP server fails.
parents 710427cc bb2f5d2a
......@@ -121,8 +121,8 @@ sub _connect {
$self->{_error_string} = $EVAL_ERROR;
unless ($connection) {
$log->syslog('err', 'Unable to connect to the LDAP server %s',
$self->{host});
$log->syslog('err', 'Unable to connect to the LDAP server %s: %s',
$self->{host}, $self->{_error_string});
return undef;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment