Lines Matching defs:pctx

526     struct cli_protocol *pctx;
531 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
534 ret = sss_packet_new(pctx->creq, 0,
535 sss_packet_get_cmd(pctx->creq->in),
536 &pctx->creq->out);
542 ret = fill_pwent(pctx->creq->out,
549 sss_packet_set_error(pctx->creq->out, EOK);
1407 struct cli_protocol *pctx;
1438 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
1439 ret = sss_packet_new(pctx->creq, sid.len + 3 * sizeof(uint32_t),
1440 sss_packet_get_cmd(pctx->creq->in),
1441 &pctx->creq->out);
1446 sss_packet_get_body(pctx->creq->out, &body, &blen);
1452 sss_packet_set_error(pctx->creq->out, EOK);
1468 struct cli_protocol *pctx;
1504 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
1507 sss_packet_get_body(pctx->creq->in, &body, &blen);
1901 struct cli_protocol *pctx;
1937 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
1940 sss_packet_get_body(pctx->creq->in, &body, &blen);
2208 if (state->nctx->pctx) {
2209 if (state->nctx->pctx->ready) {
2221 ret = nss_setent_add_ref(state, state->nctx->pctx, req);
2235 state->nctx->pctx = talloc_zero(nctx, struct getent_ctx);
2236 if (!state->nctx->pctx) {
2240 state->getent_ctx = nctx->pctx;
2243 ret = nss_setent_add_ref(state, state->nctx->pctx, req);
2295 struct getent_ctx *pctx = step_ctx->getent_ctx;
2376 nctx->pctx->doms = talloc_realloc(pctx, pctx->doms,
2377 struct dom_ctx, pctx->num +1);
2378 if (!pctx->doms) {
2379 talloc_free(pctx);
2380 nctx->pctx = NULL;
2384 nctx->pctx->doms[pctx->num].domain = dctx->domain;
2385 nctx->pctx->doms[pctx->num].res = talloc_steal(pctx->doms, res);
2387 nctx->pctx->num++;
2396 nctx->pctx->ready = true;
2403 te = tevent_add_timer(rctx->ev, nctx->pctx, tv,
2412 nss_setent_notify_done(nctx->pctx);
2435 talloc_zfree(nctx->pctx);
2456 nss_setent_notify_error(step_ctx->nctx->pctx, ret);
2468 struct cli_protocol *pctx;
2473 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
2478 ret = sss_packet_new(pctx->creq, 0,
2479 sss_packet_get_cmd(pctx->creq->in),
2480 &pctx->creq->out);
2517 if(!nctx->pctx || !nctx->pctx->ready) {
2535 struct cli_protocol *pctx;
2541 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
2544 sss_packet_get_body(pctx->creq->in, &body, &blen);
2551 ret = sss_packet_new(pctx->creq, 0,
2552 sss_packet_get_cmd(pctx->creq->in),
2553 &pctx->creq->out);
2560 sss_packet_set_error(pctx->creq->out, ret);
2568 struct cli_protocol *pctx;
2577 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
2580 if (!nctx->pctx) goto none;
2582 gctx = nctx->pctx;
2612 ret = fill_pwent(pctx->creq->out, pdom->domain, nctx,
2620 ret = sss_cmd_empty_packet(pctx->creq->out);
2661 struct cli_protocol *pctx;
2668 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
2673 ret = sss_packet_new(pctx->creq, 0,
2674 sss_packet_get_cmd(pctx->creq->in),
2675 &pctx->creq->out);
2680 if (nctx->pctx == NULL) goto done;
2965 struct cli_protocol *pctx;
2970 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
2973 ret = sss_packet_new(pctx->creq, 0,
2974 sss_packet_get_cmd(pctx->creq->in),
2975 &pctx->creq->out);
2980 ret = fill_grent(pctx->creq->out,
2987 sss_packet_set_error(pctx->creq->out, EOK);
3648 struct cli_protocol *pctx;
3650 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
3655 ret = sss_packet_new(pctx->creq, 0,
3656 sss_packet_get_cmd(pctx->creq->in),
3657 &pctx->creq->out);
3670 struct cli_protocol *pctx;
3679 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
3705 ret = fill_grent(pctx->creq->out,
3714 ret = sss_cmd_empty_packet(pctx->creq->out);
3721 struct cli_protocol *pctx;
3727 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
3730 sss_packet_get_body(pctx->creq->in, &body, &blen);
3737 ret = sss_packet_new(pctx->creq, 0,
3738 sss_packet_get_cmd(pctx->creq->in),
3739 &pctx->creq->out);
3746 sss_packet_set_error(pctx->creq->out, ret);
3830 struct cli_protocol *pctx;
3837 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
3842 ret = sss_packet_new(pctx->creq, 0,
3843 sss_packet_get_cmd(pctx->creq->in),
3844 &pctx->creq->out);
4096 struct cli_protocol *pctx;
4100 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
4103 ret = sss_packet_new(pctx->creq, 0,
4104 sss_packet_get_cmd(pctx->creq->in),
4105 &pctx->creq->out);
4110 ret = fill_initgr(pctx->creq->out, dctx->domain, dctx->res, nctx,
4115 sss_packet_set_error(pctx->creq->out, EOK);
5123 struct cli_protocol *pctx;
5133 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
5135 ret = sss_packet_new(pctx->creq, 0,
5136 sss_packet_get_cmd(pctx->creq->in),
5137 &pctx->creq->out);
5150 ret = fill_name(pctx->creq->out,
5158 ret = fill_id(pctx->creq->out, id_type, dctx->res->msgs[0]);
5162 ret = fill_sid(pctx->creq->out, id_type, dctx->res->msgs[0]);
5165 ret = fill_orig(pctx->creq->out, cctx->rctx, id_type,
5176 sss_packet_set_error(pctx->creq->out, EOK);
5190 struct cli_protocol *pctx;
5194 pctx = talloc_get_type(cmdctx->cctx->protocol_ctx, struct cli_protocol);
5222 ret = sss_packet_new(pctx->creq, name.len + 3 * sizeof(uint32_t),
5223 sss_packet_get_cmd(pctx->creq->in),
5224 &pctx->creq->out);
5230 sss_packet_get_body(pctx->creq->out, &body, &blen);
5236 sss_packet_set_error(pctx->creq->out, EOK);
5251 struct cli_protocol *pctx;
5263 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
5280 sss_packet_get_body(pctx->creq->in, &body, &blen);
5371 struct cli_protocol *pctx;
5374 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
5383 sss_packet_get_body(pctx->creq->in, &body, &blen);
5417 struct cli_protocol *pctx;
5421 pctx = talloc_get_type(cctx->protocol_ctx, struct cli_protocol);
5440 ret = sss_packet_new(pctx->creq, 0,
5441 sss_packet_get_cmd(pctx->creq->in),
5442 &pctx->creq->out);
5449 ret = fill_name(pctx->creq->out, cctx->rctx, domain,
5460 sss_packet_set_error(pctx->creq->out, EOK);