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

Way to do non-blocking ldap connect ?

Hi all,
Is there a way to open a LDPA connection in a
non-blocking mode?

As I understand, ldap_open is a blocking call, is that

I was hoping I could - 
1. Open a socket in non-blocking mode
2. Make a connection
3. Call ldap_init
4. Set the socket fd using ldap_set_option
5. Call ldap_bind
6. ...

Howevever, I see that I cannot set the socket fd using
ldap_set_option (LDAP_OPT_DESC, ..), socket fd seem to
be read-only in the openLdap-2.2.20 & openLdap-2.2.23

Any idea, how to get around this problem ?


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around