diff options
Diffstat (limited to 'src/providers')
-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; } |