Hi,
I work in the Middleware group at Cal State University, Northridge. We extensively use the Net::LDAP library. As I was developing an application, I noticed a behavior which looks like a bug.
Here are the details...
The search method (*) of the Net::LDAP class returns a bare scalar instead of a reference to an object derived from the Net::LDAP::Message class when the error code is 81 (LDAP_SERVER_DOWN).
I looked at the source code of the perl-ldap-0.30 release (perl-ldap-0.30/lib/Net/LDAP.pm).
The _sendmesg method (which is called by the search method and many other methods (*)) returns a bare LDAP_SERVER_DOWN scalar when the connection has been dropped.
I'd rather see there a "return _error($ldap, $mesg, LDAP_SERVER_DOWN, $@)"
I haven't, though, looked into the details of what the _error subroutine does.
Sincerely,
Sylvie Saleur [EMAIL PROTECTED]
(*) I've logged this unexpected return value in the case of the search method; seems other LDAP methods could also could return such a bare scalar.
My email did not go through: re-sending...
