From: Chris R. <chr...@me...> - 2000-07-27 14:07:09
|
Graham Barr <gb...@po...> wrote: > On Thu, Jul 27, 2000 at 12:20:44PM +0100, Chris Ridd wrote: >> Jonathan Leto <jon...@le...> wrote: >> > If I had problem with timeouts, you would just have to come up with a >> > heuristic of checking if the server is alive ( I dont' think anything >> > like $ldap->ping exists, THAT would be cool ) and then do a check at >> > the beginning of every function. >> >> The best (ie cheapest in terms of protocol) way to do that in LDAPv3 >> would be to read a specific attribute (eg supportedLDAPVersions) from >> the root DSE, and throw away the results. >> >> I can't think of a simple and portable way to do this in LDAPv2. > > You mean instead of deliberatly sending a malformed packet and expecting > an error response. But thats probbaly too evil :) > > Graham. > Well that's a bit *too* evil! V3 servers are at liberty to disconnect you if you do that, and I wouldn't be surprised if some v2 servers did something similar. Cheers, Chris |