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

Re: (ITS#4783) ldap_sasl_bind() is not asynchronous



On December 19, 2006 7:04:15 PM -0800 "Kurt D. Zeilenga" 
<Kurt@OpenLDAP.org> wrote:
> At 05:32 PM 12/19/2006, fcusack@fcusack.com wrote:
>> Full_Name: Frank Cusack
>> Version: 2.3.27
>> OS: any
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (209.76.127.62)
>>
>> connect() is always done synchronously.  Any idea when this will be
>> fixed?
>
> It's actually not considered a bug.  ldap_sasl_bind(3) is async
> in doesn't wait for the LDAP response.  There is no LDAP restart
> API, as would be needed if the API didn't block on various
> system calls.

Why is that required here?

  ldap_sasl_bind()
  ldap_result()
  if (timeout) {
    ldap_abandon()
    if (just_return_on_error) {
      return error
    } else {
      do_something_else
    }
  }

To restart a bind, just abandon and bind again.

I am not all that familiar with the LDAP API, so forgive me if I'm
way off base here.

-frank