/* Out parameters */
state->orig.out.out_data = _out_data;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Ping, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_Ping_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Ping, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.in_data = in_data;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Ping, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Ping, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupSid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupSid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupSid, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.sid = sid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupSid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupSid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupName, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupName_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupName, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.name = name;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupName, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupName, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Sid2Uid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_Sid2Uid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Sid2Uid, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.dom_name = dom_name;
r.in.sid = sid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Sid2Uid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Sid2Uid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Sid2Gid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_Sid2Gid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Sid2Gid, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.dom_name = dom_name;
r.in.sid = sid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Sid2Gid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Sid2Gid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Uid2Sid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_Uid2Sid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Uid2Sid, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.dom_name = dom_name;
r.in.uid = uid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Uid2Sid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Uid2Sid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Gid2Sid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_Gid2Sid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Gid2Sid, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.dom_name = dom_name;
r.in.gid = gid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_Gid2Sid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_Gid2Sid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_AllocateUid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_AllocateUid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_AllocateUid, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_AllocateUid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_AllocateUid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_AllocateGid, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_AllocateGid_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_AllocateGid, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_AllocateGid, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_AllocateGid, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryUser, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_QueryUser_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryUser, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.sid = sid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryUser, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryUser, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupUserAliases, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupUserAliases_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupUserAliases, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.sids = sids;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupUserAliases, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupUserAliases, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupUserGroups, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupUserGroups_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupUserGroups, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.sid = sid;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupUserGroups, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupUserGroups, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QuerySequenceNumber, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_QuerySequenceNumber_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QuerySequenceNumber, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QuerySequenceNumber, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QuerySequenceNumber, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupGroupMembers, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupGroupMembers_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupGroupMembers, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.sid = sid;
r.in.type = type;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupGroupMembers, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupGroupMembers, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryUserList, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_QueryUserList_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryUserList, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryUserList, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryUserList, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryGroupList, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_QueryGroupList_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryGroupList, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_QueryGroupList, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_QueryGroupList, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_DsGetDcName, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_DsGetDcName_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_DsGetDcName, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.site_name = site_name;
r.in.flags = flags;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_DsGetDcName, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_DsGetDcName, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupRids, &state->orig);
- }
-
state->out_mem_ctx = talloc_named_const(state, 0,
"rpccli_wbint_LookupRids_out_memory");
if (tevent_req_nomem(state->out_mem_ctx, req)) {
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupRids, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
r.in.rids = rids;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_LookupRids, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_LookupRids, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_CheckMachineAccount, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_CheckMachineAccount, &state->orig);
- }
-
tevent_req_done(req);
}
/* In parameters */
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_CheckMachineAccount, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_CheckMachineAccount, &r);
+ if (NT_STATUS_IS_ERR(status)) {
+ return status;
+ }
+
+ /* Return variables */
+
+ /* Return result */
+ return r.out.result;
+}
+
+struct rpccli_wbint_ChangeMachineAccount_state {
+ struct wbint_ChangeMachineAccount orig;
+ struct wbint_ChangeMachineAccount tmp;
+ TALLOC_CTX *out_mem_ctx;
+ NTSTATUS (*dispatch_recv)(struct tevent_req *req, TALLOC_CTX *mem_ctx);
+};
+
+static void rpccli_wbint_ChangeMachineAccount_done(struct tevent_req *subreq);
+
+struct tevent_req *rpccli_wbint_ChangeMachineAccount_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct rpc_pipe_client *cli)
+{
+ struct tevent_req *req;
+ struct rpccli_wbint_ChangeMachineAccount_state *state;
+ struct tevent_req *subreq;
+
+ req = tevent_req_create(mem_ctx, &state,
+ struct rpccli_wbint_ChangeMachineAccount_state);
+ if (req == NULL) {
+ return NULL;
+ }
+ state->out_mem_ctx = NULL;
+ state->dispatch_recv = cli->dispatch_recv;
+
+ /* In parameters */
+
+ /* Out parameters */
+
+ /* Result */
+ ZERO_STRUCT(state->orig.out.result);
+
+ /* make a temporary copy, that we pass to the dispatch function */
+ state->tmp = state->orig;
+
+ subreq = cli->dispatch_send(state, ev, cli,
+ &ndr_table_wbint,
+ NDR_WBINT_CHANGEMACHINEACCOUNT,
+ &state->tmp);
+ if (tevent_req_nomem(subreq, req)) {
+ return tevent_req_post(req, ev);
+ }
+ tevent_req_set_callback(subreq, rpccli_wbint_ChangeMachineAccount_done, req);
+ return req;
+}
+
+static void rpccli_wbint_ChangeMachineAccount_done(struct tevent_req *subreq)
+{
+ struct tevent_req *req = tevent_req_callback_data(
+ subreq, struct tevent_req);
+ struct rpccli_wbint_ChangeMachineAccount_state *state = tevent_req_data(
+ req, struct rpccli_wbint_ChangeMachineAccount_state);
+ NTSTATUS status;
+ TALLOC_CTX *mem_ctx;
+
+ if (state->out_mem_ctx) {
+ mem_ctx = state->out_mem_ctx;
+ } else {
+ mem_ctx = state;
+ }
+
+ status = state->dispatch_recv(subreq, mem_ctx);
+ TALLOC_FREE(subreq);
+ if (!NT_STATUS_IS_OK(status)) {
+ tevent_req_nterror(req, status);
+ return;
+ }
+
+ /* Copy out parameters */
+
+ /* Copy result */
+ state->orig.out.result = state->tmp.out.result;
+
+ /* Reset temporary structure */
+ ZERO_STRUCT(state->tmp);
+
+ tevent_req_done(req);
+}
+
+NTSTATUS rpccli_wbint_ChangeMachineAccount_recv(struct tevent_req *req,
+ TALLOC_CTX *mem_ctx,
+ NTSTATUS *result)
+{
+ struct rpccli_wbint_ChangeMachineAccount_state *state = tevent_req_data(
+ req, struct rpccli_wbint_ChangeMachineAccount_state);
+ NTSTATUS status;
+
+ if (tevent_req_is_nterror(req, &status)) {
+ tevent_req_received(req);
+ return status;
+ }
+
+ /* Steal possbile out parameters to the callers context */
+ talloc_steal(mem_ctx, state->out_mem_ctx);
+
+ /* Return result */
+ *result = state->orig.out.result;
+
+ tevent_req_received(req);
+ return NT_STATUS_OK;
+}
+
+NTSTATUS rpccli_wbint_ChangeMachineAccount(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx)
+{
+ struct wbint_ChangeMachineAccount r;
+ NTSTATUS status;
+
+ /* In parameters */
+
+ status = cli->dispatch(cli,
+ mem_ctx,
+ &ndr_table_wbint,
+ NDR_WBINT_CHANGEMACHINEACCOUNT,
+ &r);
+
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
}
if (NT_STATUS_IS_ERR(status)) {
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_SetMapping, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_SetMapping, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.type = type;
r.in.id = id;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_SetMapping, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_SetMapping, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_RemoveMapping, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_RemoveMapping, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.type = type;
r.in.id = id;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_RemoveMapping, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_RemoveMapping, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}
/* Result */
ZERO_STRUCT(state->orig.out.result);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_SetHWM, &state->orig);
- }
-
/* make a temporary copy, that we pass to the dispatch function */
state->tmp = state->orig;
/* Reset temporary structure */
ZERO_STRUCT(state->tmp);
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_SetHWM, &state->orig);
- }
-
tevent_req_done(req);
}
r.in.type = type;
r.in.id = id;
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_IN_DEBUG(wbint_SetHWM, &r);
- }
-
status = cli->dispatch(cli,
mem_ctx,
&ndr_table_wbint,
return status;
}
- if (DEBUGLEVEL >= 10) {
- NDR_PRINT_OUT_DEBUG(wbint_SetHWM, &r);
- }
-
if (NT_STATUS_IS_ERR(status)) {
return status;
}