Unverified Commit bb2f5d2a authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Add actual error to the log if connection to LDAP server fails.

parent 36739f1c
......@@ -121,8 +121,8 @@ sub _connect {
$self->{_error_string} = $EVAL_ERROR;
unless ($connection) {
$log->syslog('err', 'Unable to connect to the LDAP server %s',
$log->syslog('err', 'Unable to connect to the LDAP server %s: %s',
$self->{host}, $self->{_error_string});
return undef;
Supports Markdown
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