RE: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-14 Thread Ian Puleston
-Original Message- From: Howard Chu [mailto:h...@symas.com] Ian Puleston wrote: If this all works I'll put in a bug report with a patch. Sounds to me like you should just file the bug report first. The patch can come later. I need to get this fixed in the port I am using so

RE: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-12 Thread Ian Puleston
Hi Howard, -Original Message- From: Howard Chu [mailto:h...@symas.com] Ian Puleston wrote: I'm working on a fix now, and I think what is needed is: 1. A call to ldap_int_poll in ldap_int_tls_start if async. Then it should abort without calling ldap_int_tls_connect if not ready

Re: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-12 Thread Howard Chu
Ian Puleston wrote: Hi Howard, -Original Message- From: Howard Chu [mailto:h...@symas.com] Ian Puleston wrote: I'm working on a fix now, and I think what is needed is: 1. A call to ldap_int_poll in ldap_int_tls_start if async. Then it should abort without calling

RE: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-11 Thread Ian Puleston
-Original Message- From: masar...@aero.polimi.it [mailto:masar...@aero.polimi.it] Sent: Thursday, February 03, 2011 9:35 PM ldap_int_poll() will return -2 if timeout is 0 and the filedes was not active. So ldap_send_server_request() will return LDAP_X_CONNECTING if async. I've hit

Re: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-11 Thread Howard Chu
Ian Puleston wrote: -Original Message- From: masar...@aero.polimi.it [mailto:masar...@aero.polimi.it] Sent: Thursday, February 03, 2011 9:35 PM ldap_int_poll() will return -2 if timeout is 0 and the filedes was not active. So ldap_send_server_request() will return LDAP_X_CONNECTING if

RE: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-04 Thread Ian Puleston
-Original Message- From: masar...@aero.polimi.it [mailto:masar...@aero.polimi.it] Sent: Thursday, February 03, 2011 9:35 PM But ldap_send_initial_request() then gets a good return code from ldap_open_defconn(), and so it goes on to call ldap_send_server_request() to send the bind,

How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-03 Thread Ian Puleston
Hi, I'm trying to use the new LDAP_OPT_CONNECT_ASYNC with OpenLDAP 2.4.23 client and I can't see how it can be done. After creating the connection structure via ldap_initialize() I then call ldap_sasl_bind() to do the bind. That calls down to ldap_new_connection() (ldap_sasl_bind -

Re: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-03 Thread Howard Chu
Ian Puleston wrote: Hi, I'm trying to use the new LDAP_OPT_CONNECT_ASYNC with OpenLDAP 2.4.23 client and I can't see how it can be done. After creating the connection structure via ldap_initialize() I then call ldap_sasl_bind() to do the bind. That calls down to ldap_new_connection()

Re: How to use LDAP_OPT_CONNECT_ASYNC?

2011-02-03 Thread masarati
Hi, I'm trying to use the new LDAP_OPT_CONNECT_ASYNC with OpenLDAP 2.4.23 client and I can't see how it can be done. After creating the connection structure via ldap_initialize() I then call ldap_sasl_bind() to do the bind. That calls down to ldap_new_connection() (ldap_sasl_bind -