summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-03 15:32:43 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-04 08:27:16 -0500
commitf393e23f264a299868a12bec40a390a7ecd65d10 (patch)
tree02eac272336089789d2544591416b5bfbd499ec6 /src/providers/ldap
parent169fa5bd3edd34aa0db35681832bd7406e423c1b (diff)
downloadsssd-f393e23f264a299868a12bec40a390a7ecd65d10.tar.gz
sssd-f393e23f264a299868a12bec40a390a7ecd65d10.tar.bz2
sssd-f393e23f264a299868a12bec40a390a7ecd65d10.zip
LDAP: Fix incorrect search timeouts
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async_groups.c2
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index fe5dbd49..f8936264 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -2401,7 +2401,7 @@ sdap_nested_group_process_deref_call(struct tevent_req *req)
state->opts->user_map[SDAP_AT_USER_NAME].name;
sdap_attrs[SDAP_OPTS_GROUP + 1] = NULL;
- timeout = dp_opt_get_int(state->opts->basic, SDAP_ENTRY_CACHE_TIMEOUT);
+ timeout = dp_opt_get_int(state->opts->basic, SDAP_SEARCH_TIMEOUT);
subreq = sdap_deref_search_send(state, state->ev, state->opts,
state->sh, state->derefctx->orig_dn,
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index a769b100..964f5b0a 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -808,7 +808,7 @@ static errno_t sdap_initgr_nested_deref_search(struct tevent_req *req)
SDAP_OPTS_GROUP, &sdap_attrs);
if (ret != EOK) goto fail;
- timeout = dp_opt_get_int(state->opts->basic, SDAP_ENTRY_CACHE_TIMEOUT);
+ timeout = dp_opt_get_int(state->opts->basic, SDAP_SEARCH_TIMEOUT);
subreq = sdap_deref_search_send(state, state->ev, state->opts,
state->sh, state->orig_dn,