Full_Name: jeremy hustache Version: 2.4.31 OS: FreeBSD URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (46.218.228.130)
I want to use ldap_simple_bind completely asynchronously (for the connect level and bind request). My code is the following: ldap_set_option(ld, LDAP_OPT_CONNECT_ASYNC, LDAP_OPT_ON); rc = ldap_simple_bind(ld, user, password);
I set also options LDAP_OPT_NETWORK_TIMEOUT before calling ldap_simple_bind. rc is still equal to -1 and ldap_err2string(rc) returns "Can't contact LDAP server"
If I call ldap_simple_bind without calling previously ldap_set_option(ld, LDAP_OPT_CONNECT_ASYNC, LDAP_OPT_ON), rc is successful.
So can I use ldap_opt_connect_async in this case ?