1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Remove unused marshalling for SAMR_REMOVE_SID_FOREIGN_DOMAIN.

Guenther
This commit is contained in:
Günther Deschner 2008-02-05 11:23:04 +01:00
parent 91c48ae15b
commit 2e2b80bd03
3 changed files with 0 additions and 116 deletions

View File

@ -1387,25 +1387,6 @@ typedef struct r_samr_chgpasswd_user3
} SAMR_R_CHGPASSWD_USER3;
/* SAMR_Q_REMOVE_SID_FOREIGN_DOMAIN */
typedef struct q_samr_remove_sid_foreign_domain_info
{
POLICY_HND dom_pol; /* policy handle */
DOM_SID2 sid; /* SID */
} SAMR_Q_REMOVE_SID_FOREIGN_DOMAIN;
/* SAMR_R_REMOVE_SID_FOREIGN_DOMAIN */
typedef struct r_samr_remove_sid_foreign_domain_info
{
NTSTATUS status; /* return status */
} SAMR_R_REMOVE_SID_FOREIGN_DOMAIN;
/* these are from the old rpc_samr.h - they are needed while the merge
is still going on */
#define MAX_SAM_SIDS 15

View File

@ -1113,38 +1113,3 @@ NTSTATUS rpccli_samr_set_userinfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_
return result;
}
/* Remove foreign SID */
NTSTATUS rpccli_samr_remove_sid_foreign_domain(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
POLICY_HND *user_pol,
DOM_SID *sid)
{
prs_struct qbuf, rbuf;
SAMR_Q_REMOVE_SID_FOREIGN_DOMAIN q;
SAMR_R_REMOVE_SID_FOREIGN_DOMAIN r;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DEBUG(10,("cli_samr_remove_sid_foreign_domain\n"));
ZERO_STRUCT(q);
ZERO_STRUCT(r);
/* Marshall data and send request */
init_samr_q_remove_sid_foreign_domain(&q, user_pol, sid);
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_REMOVE_SID_FOREIGN_DOMAIN,
q, r,
qbuf, rbuf,
samr_io_q_remove_sid_foreign_domain,
samr_io_r_remove_sid_foreign_domain,
NT_STATUS_UNSUCCESSFUL);
/* Return output parameters */
result = r.status;
return result;
}

View File

@ -32,68 +32,6 @@
reads or writes a structure.
********************************************************************/
void init_samr_q_remove_sid_foreign_domain(SAMR_Q_REMOVE_SID_FOREIGN_DOMAIN * q_u, POLICY_HND *dom_pol, DOM_SID *sid)
{
DEBUG(5, ("samr_init_samr_q_remove_sid_foreign_domain\n"));
q_u->dom_pol = *dom_pol;
init_dom_sid2(&q_u->sid, sid);
}
/*******************************************************************
reads or writes a structure.
********************************************************************/
bool samr_io_q_remove_sid_foreign_domain(const char *desc, SAMR_Q_REMOVE_SID_FOREIGN_DOMAIN * q_u,
prs_struct *ps, int depth)
{
if (q_u == NULL)
return False;
prs_debug(ps, depth, desc, "samr_io_q_remove_sid_foreign_domain");
depth++;
if(!prs_align(ps))
return False;
if(!smb_io_pol_hnd("domain_pol", &q_u->dom_pol, ps, depth))
return False;
if(!smb_io_dom_sid2("sid", &q_u->sid, ps, depth))
return False;
if(!prs_align(ps))
return False;
return True;
}
/*******************************************************************
reads or writes a structure.
********************************************************************/
bool samr_io_r_remove_sid_foreign_domain(const char *desc, SAMR_R_REMOVE_SID_FOREIGN_DOMAIN * r_u,
prs_struct *ps, int depth)
{
if (r_u == NULL)
return False;
prs_debug(ps, depth, desc, "samr_io_r_remove_sid_foreign_domain");
depth++;
if(!prs_align(ps))
return False;
if(!prs_ntstatus("status", ps, depth, &r_u->status))
return False;
return True;
}
/*******************************************************************
reads or writes a structure.
********************************************************************/
void init_samr_q_query_domain_info(SAMR_Q_QUERY_DOMAIN_INFO * q_u,
POLICY_HND *domain_pol, uint16 switch_value)
{