summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-11-28 11:26:41 -0500
committerJan Zeleny <jzeleny@redhat.com>2011-11-29 09:34:29 +0100
commit0aaf73e328ce89fb7e690545234402e1b17dee36 (patch)
tree00ebbb52e7036ff92ef76b986bb8f15db751d358 /src/providers/ldap
parentbe1ef1c62ad13612be5e1f879476c24452a5d6d0 (diff)
downloadsssd-0aaf73e328ce89fb7e690545234402e1b17dee36.tar.gz
sssd-0aaf73e328ce89fb7e690545234402e1b17dee36.tar.xz
sssd-0aaf73e328ce89fb7e690545234402e1b17dee36.zip
LDAP: Try next failover server on any error
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_connection.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index dfec3548a..0d3fd25cb 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1239,16 +1239,12 @@ static void sdap_cli_connect_done(struct tevent_req *subreq)
ret = sdap_connect_recv(subreq, state, &state->sh);
talloc_zfree(subreq);
if (ret) {
- if (ret == ETIMEDOUT) { /* retry another server */
- fo_set_port_status(state->srv, PORT_NOT_WORKING);
- ret = sdap_cli_resolve_next(req);
- if (ret != EOK) {
- tevent_req_error(req, ret);
- }
- return;
+ /* retry another server */
+ fo_set_port_status(state->srv, PORT_NOT_WORKING);
+ ret = sdap_cli_resolve_next(req);
+ if (ret != EOK) {
+ tevent_req_error(req, ret);
}
-
- tevent_req_error(req, ret);
return;
}