From 5c3054fbdec7bd82ab4feb2c605139fd53c8743e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 4 Sep 2012 17:47:04 +0200 Subject: Retry the next server if bind during LDAP auth times out --- src/providers/ldap/ldap_auth.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index da64f249..cc5eff1b 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -656,7 +656,12 @@ static void auth_bind_user_done(struct tevent_req *subreq) state->pw_expire_data = ppolicy; } talloc_zfree(subreq); - if (ret) { + if (ret == ETIMEDOUT) { + if (auth_get_server(req) == NULL) { + tevent_req_error(req, ENOMEM); + } + return; + } else if (ret != EOK) { tevent_req_error(req, ret); return; } -- cgit