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

Re: ASYNC call blocking



On Mon, 2006-03-06 at 14:41 -0500, Jeremiah Martell wrote:
> I posted a message a week ago about the ASYNC ldap_bind call blocking.
> 
> ldap_bind is supposed to be ASYNC and not block, and ldap_bind_s is
> supposed to be SYNC and block. But both ldap_bind_s AND ldap_bind is
> blocking.
> 
> ldap_bind will block with a bogus IP or with no active internet connection.
> 
> Has anybody successfully used ldap_bind? Is this a known bug? Is there
> a workaround? Has it been fixed since 2.2.17?

I'm using OpenLDAP 2.3 and OpenLDAP HEAD and I don't experience anything
like that with ldap_bind(); I should add that I've never noticed
anything like that with OpenLDAP 2.2.

I note that ldap_bind() is currently deprecated; you should use
ldap_sasl_bind() instead.  Note that, despite the name, ldap_sasl_bind()
allows to bind with other than SASL authentication methods.

p.




Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------