[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LDAP_OPT_NETWORK_TIMEOUT
- To: OpenLDAP Software List <OpenLDAP-software@OpenLDAP.org>
- Subject: LDAP_OPT_NETWORK_TIMEOUT
- From: Jeremiah Martell <inlovewithgod@gmail.com>
- Date: Mon, 3 Oct 2005 14:54:53 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=HdHx+oUYn4pbrRcVVfRBVwr0IDvx+45+6pATQJFOA4fQjd3uCOD2cG4f97clL24NaKAca6EuFyvz4Ug3Ec02Ekbu4heGvOj/rmjoLNICDy+N8tlq4+G8UOwp96RX+cvRmIsgO6g64mmMmjM7RwaTuju2GguD7eUbneCCiObhtio=
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