From: Chris R. <chr...@me...> - 2001-10-24 15:14:15
|
Graham Barr <gb...@po...> wrote: > ----- Forwarded message from Todd Woods <tw...@di...> ----- > > Date: Wed, 24 Oct 2001 09:18:20 -0500 (CDT) > To: gb...@po... > From: Todd Woods <tw...@di...> > Subject: perl-ldap and multiple start_tls errors > > Couldn't find anything using google on this error so e-mailing > you. 8) > I can't start more then 1 LDAP bind using start_tls in a perl > script. It errors out from IO::Socket::SSL when issuing start_tls on the > subsequent ldap objects event if I do an unbind first. > Reading under IO::Socket::SSL I noticed that it mentions you can > only have one SSL context at a given time. I've seen scripts (haven't run Yeah, I saw that too. I suspect that only having a single SSL context means you can only have a single SSL connection at a time. > them though) where an ssl socket was opened/closed multiple times in a > script. So wondering if this is a problem with perl-ldap. I'm not sure that opening/closing an SSL socket is really what you want to do, but if you can you point us at the scripts which do this that might give us more info. > Does an unbind request in perl-ldap close the underlying > IO:Socket:SSL created when a start_tls method is invoked on an ldap > object? No, the socket only gets closed when the $ldap object gets destroyed. In practice, that's when the $ldap variable goes out of scope. > Thanks, > Todd > > > ----- End forwarded message ----- > Cheers, Chris |