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

LDAP_OPT_NETWORK_TIMEOUT



Hello,

I'm having a problem in a client LDAP application with
LDAP_OPT_NETWORK_TIMEOUT. When I do NOT set this option, everything works
fine. But when I DO set this option, I get a "-1" error, (Can't contact LDAP
Server).

Here's my code for setting this option:

struct timeval tempTime;
tempTime.tv_usec = 0;
tempTime.tv_sec = 10;

result = ldap_set_option( bind_context, LDAP_OPT_NETWORK_TIMEOUT, (void *)
&tempTime );

NOTE: result equals zero (success) so I know the option was correctly set.

Any ideas?

Thanks,
- Jeremiah
inlovewithGod@gmail.com