diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-10 12:48:16 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-23 08:33:46 +0100 |
commit | b123a618dd8837f8a2db385542f0d7f3d7679d9b (patch) | |
tree | 36effde27949cd40f19e94fcbbed304fe812f2e3 /src/providers/ipa | |
parent | ef9ca5848ea08aafa0827f5d2922d49130ba324d (diff) | |
download | sssd-b123a618dd8837f8a2db385542f0d7f3d7679d9b.tar.gz sssd-b123a618dd8837f8a2db385542f0d7f3d7679d9b.tar.xz sssd-b123a618dd8837f8a2db385542f0d7f3d7679d9b.zip |
SDAP: Make simple bind timeout configurable
Resolves:
https://fedorahosted.org/sssd/ticket/1501
Reuse the value of sdap_opt_timeout to set a longer bind timeout for
user authentication, ID connection authentication and authentication
during IPA migration mode.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_auth.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_auth.c b/src/providers/ipa/ipa_auth.c index f9a0706be..223448338 100644 --- a/src/providers/ipa/ipa_auth.c +++ b/src/providers/ipa/ipa_auth.c @@ -330,6 +330,7 @@ static void ipa_migration_flag_connect_done(struct tevent_req *req) const char *dn; int dp_err = DP_ERR_FATAL; int ret; + int auth_timeout; ret = sdap_cli_connect_recv(req, state, NULL, &state->sh, NULL); talloc_zfree(req); @@ -369,8 +370,12 @@ static void ipa_migration_flag_connect_done(struct tevent_req *req) goto done; } + auth_timeout = dp_opt_get_int( + state->ipa_auth_ctx->sdap_auth_ctx->opts->basic, + SDAP_OPT_TIMEOUT); + req = sdap_auth_send(state, state->ev, state->sh, NULL, NULL, dn, - state->pd->authtok); + state->pd->authtok, auth_timeout); if (req == NULL) { DEBUG(SSSDBG_OP_FAILURE, "sdap_auth_send failed.\n"); goto done; |