I upgraded to 0.30 directly after you suggested. All mails after your suggestion were refering to a 0.30 version installation.
Then please add the following directly after your call to search and before you try to call any methods on $mesg
warn "'$mesg'" unless ref($mesg);
Graham.
--- Graham Barr <[EMAIL PROTECTED]> wrote:Have you tried perl-ldap-0.30 as suggested in a previous mail ?
Graham.
On Nov 11, 2003, at 17:21, Chris Masters wrote:
Appologies.after
I was not unbinding before I attempted to rebindI found the error.being
Does 'I/O Error' refer to the socket connectionclosed by the server?AddressGuard
Note: forwarded message attached.
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mailpackage or objecthttp://antispam.yahoo.com/whatsnewfree From: Chris Masters <[EMAIL PROTECTED]> Date: November 11, 2003 16:54:16 GMT To: [EMAIL PROTECTED] Subject: Fwd: CAUSE: Can't call method X without aand to
Hi Again,
I'm handling this error by using the code belowError'catch an error and establish a new connection. The problem is that the root error seems to be 'I/Orather than a 'lost connection' error. I can'tfindthis in the Net::LDAP::Constant list.the
It seems to happen after the server disconnectsLDAP connection after inactivity. This is fine,butafter I've made the reconnection, I get the erroroneach query and it binds each time.md_syslog('err',"Reconnecting
sub simple_ldap_query_succeeds($) { my ($ldap) = @_; my $version; undef $mesg; my $result = 0;
eval { $result = 1; $mesg = $ldap->search ( base => "ou=people,dc=domain,dc=com", filter => "(objectclass=testconnection)", );
if($mesg->code) {
LDAP:LDAP: simple_ldap_query_succeeds failure: $@"); $result = 0; } };
if($@) { md_syslog('err',"ReconnectingAddressGuardsimple_ldap_query_succeeds failure: $@"); $result = 0; } return $result; }
Any ideas?
TIA, Chris
Note: forwarded message attached.
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mailpackage or objecthttp://antispam.yahoo.com/whatsnewfree From: Chris Masters <[EMAIL PROTECTED]> Date: November 11, 2003 13:16:06 GMT To: [EMAIL PROTECTED] Subject: CAUSE: Can't call method X without aAddressGuard
Hi Graham,
Managed to get this before it failed:
LDAP Error: Server encountered an internal error
Is this really server side?
Thanks for any help on this,
Chris
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mailhttp://antispam.yahoo.com/whatsnewfree
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
