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

Remove unused marshalling for SAMR_CREATE_DOM_GROUP.

Guenther
(This used to be commit 2882d48dfe)
This commit is contained in:
Günther Deschner 2008-02-01 14:52:05 +01:00
parent cc1350a353
commit 42f61160f9
3 changed files with 0 additions and 138 deletions

View File

@ -1034,28 +1034,6 @@ typedef struct r_samr_get_dispenum_index
} SAMR_R_GET_DISPENUM_INDEX;
/* SAMR_Q_CREATE_DOM_GROUP - SAM create group */
typedef struct q_samr_create_dom_group_info
{
POLICY_HND pol; /* policy handle */
UNIHDR hdr_acct_desc;
UNISTR2 uni_acct_desc;
uint32 access_mask;
} SAMR_Q_CREATE_DOM_GROUP;
/* SAMR_R_CREATE_DOM_GROUP - SAM create group */
typedef struct r_samr_create_dom_group_info
{
POLICY_HND pol; /* policy handle */
uint32 rid;
NTSTATUS status;
} SAMR_R_CREATE_DOM_GROUP;
/* SAMR_Q_QUERY_GROUPINFO - SAM Group Info */
typedef struct q_samr_query_group_info
{

View File

@ -95,44 +95,6 @@ NTSTATUS rpccli_samr_connect4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
return result;
}
/* Create domain group */
NTSTATUS rpccli_samr_create_dom_group(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *domain_pol,
const char *group_name,
uint32 access_mask, POLICY_HND *group_pol)
{
prs_struct qbuf, rbuf;
SAMR_Q_CREATE_DOM_GROUP q;
SAMR_R_CREATE_DOM_GROUP r;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
DEBUG(10,("cli_samr_create_dom_group\n"));
ZERO_STRUCT(q);
ZERO_STRUCT(r);
/* Marshall data and send request */
init_samr_q_create_dom_group(&q, domain_pol, group_name, access_mask);
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_CREATE_DOM_GROUP,
q, r,
qbuf, rbuf,
samr_io_q_create_dom_group,
samr_io_r_create_dom_group,
NT_STATUS_UNSUCCESSFUL);
/* Return output parameters */
result = r.status;
if (NT_STATUS_IS_OK(result))
*group_pol = r.pol;
return result;
}
/* Add a domain group member */
NTSTATUS rpccli_samr_add_groupmem(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,

View File

@ -2327,84 +2327,6 @@ static bool samr_group_info_ctr(const char *desc, GROUP_INFO_CTR **ctr,
return True;
}
/*******************************************************************
inits a SAMR_Q_CREATE_DOM_GROUP structure.
********************************************************************/
void init_samr_q_create_dom_group(SAMR_Q_CREATE_DOM_GROUP * q_e,
POLICY_HND *pol, const char *acct_desc,
uint32 access_mask)
{
DEBUG(5, ("init_samr_q_create_dom_group\n"));
q_e->pol = *pol;
init_unistr2(&q_e->uni_acct_desc, acct_desc, UNI_FLAGS_NONE);
init_uni_hdr(&q_e->hdr_acct_desc, &q_e->uni_acct_desc);
q_e->access_mask = access_mask;
}
/*******************************************************************
reads or writes a structure.
********************************************************************/
bool samr_io_q_create_dom_group(const char *desc, SAMR_Q_CREATE_DOM_GROUP * q_e,
prs_struct *ps, int depth)
{
if (q_e == NULL)
return False;
prs_debug(ps, depth, desc, "samr_io_q_create_dom_group");
depth++;
if(!prs_align(ps))
return False;
if(!smb_io_pol_hnd("pol", &q_e->pol, ps, depth))
return False;
if(!smb_io_unihdr("hdr_acct_desc", &q_e->hdr_acct_desc, ps, depth))
return False;
if(!smb_io_unistr2("uni_acct_desc", &q_e->uni_acct_desc,
q_e->hdr_acct_desc.buffer, ps, depth))
return False;
if(!prs_align(ps))
return False;
if(!prs_uint32("access", ps, depth, &q_e->access_mask))
return False;
return True;
}
/*******************************************************************
reads or writes a structure.
********************************************************************/
bool samr_io_r_create_dom_group(const char *desc, SAMR_R_CREATE_DOM_GROUP * r_u,
prs_struct *ps, int depth)
{
if (r_u == NULL)
return False;
prs_debug(ps, depth, desc, "samr_io_r_create_dom_group");
depth++;
if(!prs_align(ps))
return False;
if(!smb_io_pol_hnd("pol", &r_u->pol, ps, depth))
return False;
if(!prs_uint32("rid ", ps, depth, &r_u->rid))
return False;
if(!prs_ntstatus("status", ps, depth, &r_u->status))
return False;
return True;
}
/*******************************************************************
inits a SAMR_Q_DEL_GROUPMEM structure.
********************************************************************/