[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Confirmation: connection state after LDAP_SERVER_DOWN



On Thu, May 20, 2004 at 10:26:26PM +0200, Graham Leggett wrote:
> Hi all,
> 
> I just need to confirm openldap's behaviour.
> 
> If a request (to init, bind or search) returns LDAP_SERVER_DOWN, what 
> state is the ldap handle in after this error has occurred?
> 
> Can the same operation be retried (with the init and bind happening 
> again automatically if the original server or backup server became 
> available again) as it is, or must the ldap handle be thrown away and a 
> new attempt made to init and bind to the server?
> 
> If the ldap handle must be thrown away, what is the correct procedure 
> for doing this? ldap_unbind_s()?
> 
> Regards,
> Graham

Ximian Evolution's code will call ldap_unbind_ext() and then start again w/
ldap_init().