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/ldap/ldap_auth.c | |
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/ldap/ldap_auth.c')
-rw-r--r-- | src/providers/ldap/ldap_auth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index bdcc4505d..3147b49b0 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -831,7 +831,9 @@ static void auth_do_bind(struct tevent_req *req) subreq = sdap_auth_send(state, state->ev, state->sh, NULL, NULL, state->dn, - state->authtok); + state->authtok, + dp_opt_get_int(state->ctx->opts->basic, + SDAP_OPT_TIMEOUT)); if (!subreq) { tevent_req_error(req, ENOMEM); return; |