Hi,
I am using LDAP C SDK 5.0.
This is what happens if I restart the server while the client is connected
(in this order):
ldap_result() correctely returns SERVER_DOWN
ldap_simple_bind_s() returns SUCCESS
when ldap_result() is called again returnds SERVER_DOWN
So it goes into this loop.

The reason I am calling ldap_simple_bind_s() is because I have set the
LDAP_OPT_RECONNECT option on the connection handle.
According to the documentation ldap_simple_bind_s() will return success
without contacting the server, if it thinks the connection is up.
To me it looks like the status of the connection is not updated when
ldap_result() returns SERVER_DOWN and so ldap_simple_bind_s() returns
success without contacting the server.

Is this a known bug ? is there a fix for this ? is there a way to get around
this ?

Ram




Reply via email to