Lines Matching refs:dctx

357     struct autofs_dom_ctx *dctx;
365 struct autofs_dom_ctx *dctx;
429 struct autofs_dom_ctx *dctx;
445 dctx = talloc_zero(state, struct autofs_dom_ctx);
446 if (!dctx) {
451 dctx->cmd_ctx = state->cmdctx;
452 state->dctx = dctx;
468 dctx->domain = responder_get_domain(client->rctx, domname);
469 if (!dctx->domain) {
481 dctx->domain = client->rctx->domains;
491 dctx->check_provider = NEED_CHECK_PROVIDER(dctx->domain->provider);
536 dctx->map_ctx = state->map;
569 lookup_ctx->dctx = talloc_steal(lookup_ctx, state->dctx);
637 struct sss_domain_info *dom = lookup_ctx->dctx->domain;
638 struct autofs_dom_ctx *dctx = lookup_ctx->dctx;
644 if (dom != dctx->domain) {
647 dctx->check_provider =
651 /* make sure to update the dctx if we changed domain */
652 dctx->domain = dom;
664 talloc_free(dctx->map);
665 ret = sysdb_get_map_byname(dctx, dom, lookup_ctx->mapname,
666 &dctx->map);
674 if (!dctx->check_provider) {
675 if (dctx->cmd_ctx->check_next) {
691 if (dctx->map == NULL && !dctx->check_provider) {
700 if (dctx->check_provider) {
730 map->map = talloc_steal(map, dctx->map);
776 struct autofs_dom_ctx *dctx = lookup_ctx->dctx;
780 if (dctx->map != NULL) {
782 cache_expire = ldb_msg_find_attr_as_uint64(dctx->map,
787 ret = sss_cmd_check_cache(dctx->map, 0, cache_expire);
798 dctx->check_provider = false;
803 if (dctx->res->count) {
804 dctx->res = talloc_steal(dctx, dctx->res);
809 lookup_ctx->dctx->domain, true,
818 cb_ctx = talloc_zero(lookup_ctx->dctx, struct dp_callback_ctx);
826 cb_ctx->cctx = lookup_ctx->dctx->cmd_ctx->cctx;
827 cb_ctx->mem_ctx = lookup_ctx->dctx;
834 ret = autofs_cmd_send_error(lookup_ctx->dctx->cmd_ctx, ret);
840 autofs_cmd_done(lookup_ctx->dctx->cmd_ctx, ret);
874 struct autofs_dom_ctx *dctx = lookup_ctx->dctx;
893 if (dctx->cmd_ctx->check_next
894 && (dctx->domain = get_next_domain(dctx->domain, 0))) {
895 dctx->check_provider = NEED_CHECK_PROVIDER(dctx->domain->provider);