From: Joao S. O. B. <gw...@mp...> - 2004-02-02 23:09:15
|
Hi, Thank you for the overview, Michael. Sorry about the message subject. Of course I should have posted it=20 with a proper subject, but I just released I had forgotten to change=20 the subject when it was already too late. Tchau, JS -><- On Monday 02 February 2004 05:20, Michael Str=F6der wrote: > Joao S. O. Bueno wrote: > > I apologize to posting this usage message to the devel list, but > > it is my most handy resource right now: > > It's the only mailing list for python-ldap. So you're welcome to > post here. But please use an appropriate subject line for your own > topic. Thanks. > > > Which is the best way to check if a given connection is still > > alive? Maybe try a search with SCOPE_BASE in a node, and check > > for a time out? I'd need it not to be expensive to the ldap > > server, neither to delay the thread. > > When I'm doing LDAP programming coaching this is a frequently asked > question. > > My answer is always: Don't do it. It's a bad habit. Implement > proper reconnecting instead. > > BTW: That's what ldap.ldapobject.ReconnectLDAPObject is for. But > you have to understand what you're doing. And you have to > understand the security implications of storing credentials in the > ReconnectLDAPObject instance especially when pickling the instance > on disk. > > Ciao, Michael. > |