diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-04 17:47:04 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-05 11:54:38 +0200 |
commit | 5c3054fbdec7bd82ab4feb2c605139fd53c8743e (patch) | |
tree | 4734e80f59e821ce5197e9c2f8544276f45d0a46 /src | |
parent | 51fbec23eb60317dcdefc33794477a0e36f16097 (diff) | |
download | sssd-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.c | 7 |
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; } |