• 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

45 	struct cmd_setpwent_state *state;
52 state = talloc(mem_ctx, struct cmd_setpwent_state);
53 if (composite_nomem(state, result)) return result;
55 state->ctx = result;
56 result->private_data = state;
57 state->service = service;
59 state->result = talloc(state, struct wbsrv_pwent);
60 if (composite_nomem(state->result, state->ctx)) return result;
62 ctx = wb_sid2domain_send(state, service, service->primary_sid);
63 if (composite_nomem(ctx, state->ctx)) return result;
65 composite_continue(state->ctx, ctx, cmd_setpwent_recv_domain, state);
71 struct cmd_setpwent_state *state = talloc_get_type(
78 state->ctx->status = wb_sid2domain_recv(ctx, &domain);
79 if (!composite_is_ok(state->ctx)) return;
81 state->libnet_ctx = domain->libnet_ctx;
83 user_list = talloc(state->result, struct libnet_UserList);
84 if (composite_nomem(user_list, state->ctx)) return;
86 user_list->in.domain_name = talloc_strdup(state,
88 if (composite_nomem(user_list->in.domain_name, state->ctx)) return;
96 ctx = libnet_UserList_send(domain->libnet_ctx, state->result, user_list,
99 composite_continue(state->ctx, ctx, cmd_setpwent_recv_user_list, state);
104 struct cmd_setpwent_state *state = talloc_get_type(
110 user_list = talloc(state->result, struct libnet_UserList);
111 if (composite_nomem(user_list, state->ctx)) return;
113 state->ctx->status = libnet_UserList_recv(ctx, state->result,
115 if (!composite_is_ok(state->ctx)) return;
117 state->result->user_list = user_list;
118 state->result->page_index = 0;
119 state->result->libnet_ctx = state->libnet_ctx;
121 composite_done(state->ctx);
132 struct cmd_setpwent_state *state =
136 *pwent = talloc_steal(mem_ctx, state->result);