• 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

55 	struct cmd_getgrgid_state *state;
62 state = talloc(result, struct cmd_getgrgid_state);
63 if (composite_nomem(state, result)) return result;
64 state->ctx = result;
65 result->private_data = state;
66 state->service = service;
67 state->gid = gid;
69 ctx = wb_gid2sid_send(state, service, gid);
70 if (composite_nomem(ctx, state->ctx)) return result;
72 composite_continue(result, ctx, cmd_getgrgid_recv_sid, state);
81 struct cmd_getgrgid_state *state =
87 state->ctx->status = wb_gid2sid_recv(ctx, state, &state->sid);
88 if (!composite_is_ok(state->ctx)) return;
90 ctx = wb_sid2domain_send(state, state->service, state->sid);
92 composite_continue(state->ctx, ctx, cmd_getgrgid_recv_domain, state);
99 struct cmd_getgrgid_state *state =
106 state->ctx->status = wb_sid2domain_recv(ctx, &state->domain);
107 if (!composite_is_ok(state->ctx)) return;
109 group_info = talloc(state, struct libnet_GroupInfo);
110 if (composite_nomem(group_info, state->ctx)) return;
113 group_info->in.data.group_sid = state->sid;
114 group_info->in.domain_name = state->domain->libnet_ctx->samr.name;
117 state->workgroup = talloc_strdup(state,
118 state->domain->libnet_ctx->samr.name);
119 if (composite_nomem(state->workgroup, state->ctx)) return;
121 ctx = libnet_GroupInfo_send(state->domain->libnet_ctx, state,group_info,
124 composite_continue(state->ctx, ctx, cmd_getgrgid_recv_group_info,state);
131 struct cmd_getgrgid_state *state =
139 gr = talloc(state, struct winbindd_gr);
140 if (composite_nomem(gr, state->ctx)) return;
142 group_info = talloc(state, struct libnet_GroupInfo);
143 if(composite_nomem(group_info, state->ctx)) return;
145 state->ctx->status = libnet_GroupInfo_recv(ctx, state, group_info);
146 if (!composite_is_ok(state->ctx)) return;
151 gr->gr_gid = state->gid;
153 state->result = gr;
155 composite_done(state->ctx);
168 struct cmd_getgrgid_state *state =
171 *gr = talloc_steal(mem_ctx, state->result);