summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-11-28 11:26:41 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-11-29 07:28:44 -0500
commit11f9ae2ef3a4884b5e7750a3d549a58a71abc015 (patch)
treee3bb8e0f4a1bd1f1e6f03c4f572f883d073f3937
parent75c231ac398dca30ae9b3f07697a5d2f4ac40090 (diff)
downloadsssd_unused-11f9ae2ef3a4884b5e7750a3d549a58a71abc015.tar.gz
sssd_unused-11f9ae2ef3a4884b5e7750a3d549a58a71abc015.tar.xz
sssd_unused-11f9ae2ef3a4884b5e7750a3d549a58a71abc015.zip
LDAP: Try next failover server on any error
-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 c69b9bce..045f009c 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1226,16 +1226,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;
}