ldap_simple_bind blocks in Open Mode when the DS is in hang state
denish patel <[email protected]> Fri, 8 May 2009 16:38:54 +0530
| Newsgroups | gmane.comp.mozilla.devel.directory |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I have a simple LDAP Client that uses the Mozilla LDAP SDK.
This client simulates how our software communicates with the Directory
Server (OVD / Sun DS).
Here are the steps that I follow:
1) ldap_init
2) ldap_set_option - set options -
a) Version
b) LDAP_X_OPT_CONNECT_TIMEOUT
c) LDAP_OPT_REFERRALS to LDAP_OPT_ON
d) LDAP_OPT_SIZELIMIT
e) LDAP_OPT_TIMELIMIT
f) LDAP_OPT_NETWORK_TIMEOUT (Unsuccessful even when the DS is up) (added
later)
g) PRLDAP_OPT_IO_MAX_TIMEOUT (Unsuccessful even when the DS is up)
(added later)
3) ldap_simple_bind
4) query the Directory Server (DS)
The client works perfectly when the DS is up.
However when the DS is given a STOP signal, the Client gets blocked on the
bind call.
I have tried setting the TCP Timeout to a low value, but even that did not
work.
Is there anything more that I need to do?
Thanks,
Denish