• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source4/winbind/

Lines Matching refs:state

65 	struct sid2domain_state *state;
70 state = talloc(result, struct sid2domain_state);
71 if (state == NULL) goto failed;
72 state->ctx = result;
73 result->private_data = state;
75 state->service = service;
76 state->sid = dom_sid_dup(state, sid);
77 if (state->sid == NULL) goto failed;
79 state->domain = find_domain_from_sid(service, sid);
80 if (state->domain != NULL) {
88 ctx = wb_get_dom_info_send(state, service, lp_workgroup(service->task->lp_ctx),
92 ctx->async.private_data = state;
96 ctx = wb_cmd_lookupsid_send(state, service, state->sid);
98 composite_continue(result, ctx, sid2domain_recv_name, state);
110 struct sid2domain_state *state =
115 state->ctx->status = wb_get_dom_info_recv(ctx, state, &info);
116 if (!composite_is_ok(state->ctx)) return;
118 ctx = wb_init_domain_send(state, state->service, info);
120 composite_continue(state->ctx, ctx, sid2domain_recv_init, state);
125 struct sid2domain_state *state =
130 state->ctx->status = wb_cmd_lookupsid_recv(ctx, state, &name);
131 if (!composite_is_ok(state->ctx)) return;
134 composite_error(state->ctx, NT_STATUS_NO_SUCH_DOMAIN);
139 state->sid->num_auths -= 1;
142 ctx = wb_trusted_dom_info_send(state, state->service, name->domain,
143 state->sid);
145 composite_continue(state->ctx, ctx, sid2domain_recv_trusted_dom_info,
146 state);
151 struct sid2domain_state *state =
156 state->ctx->status = wb_trusted_dom_info_recv(ctx, state, &info);
157 if (!composite_is_ok(state->ctx)) return;
159 ctx = wb_init_domain_send(state, state->service, info);
161 composite_continue(state->ctx, ctx, sid2domain_recv_init, state);
166 struct sid2domain_state *state =
171 state->ctx->status = wb_init_domain_recv(ctx, state,
172 &state->domain);
173 if (!composite_is_ok(state->ctx)) {
178 existing = find_domain_from_sid(state->service, state->sid);
181 talloc_free(state->domain);
182 state->domain = existing;
185 talloc_steal(state->service, state->domain);
186 DLIST_ADD(state->service->domains, state->domain);
188 composite_done(state->ctx);
196 struct sid2domain_state *state =
199 *result = state->domain;