From 0aaf73e328ce89fb7e690545234402e1b17dee36 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 28 Nov 2011 11:26:41 -0500 Subject: LDAP: Try next failover server on any error --- src/providers/ldap/sdap_async_connection.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index dfec3548..0d3fd25c 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; } -- cgit