From: Graham B. <gb...@po...> - 2000-07-27 11:45:27
|
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. |