summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-04 17:47:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-05 11:54:38 +0200
commit5c3054fbdec7bd82ab4feb2c605139fd53c8743e (patch)
tree4734e80f59e821ce5197e9c2f8544276f45d0a46 /src
parent51fbec23eb60317dcdefc33794477a0e36f16097 (diff)
downloadsssd-5c3054fbdec7bd82ab4feb2c605139fd53c8743e.tar.gz
sssd-5c3054fbdec7bd82ab4feb2c605139fd53c8743e.tar.xz
sssd-5c3054fbdec7bd82ab4feb2c605139fd53c8743e.zip
Retry the next server if bind during LDAP auth times out
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_auth.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index da64f249e..cc5eff1b2 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;
}