Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 37538
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: Nobody in particular
Requestors: isaacson [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.37



Subject: Errors from SASL client_start are not returned
In bind(), if the SASL client_start call fails, the exact error message is swallowed, and the user gets a generic "Local error" message back. The error handling looks like this: my $initial = $sasl_conn->client_start; return _error($ldap, $mesg, LDAP_LOCAL_ERROR, "$@") unless defined($initial); This looks like a copy & paste from a few lines above, where errors creating $sasl_conn are caught by an eval. In this case, there is no eval, and "$@" will always be empty. To return the exact SASL error message to the caller, I think the last parameter here should be $sasl_conn->error().
Should this perhaps be resolved? The fix was included in 0.37.