mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
Remove unused marshalling for SAMR_CREATE_DOM_ALIAS.
Guenther (This used to be commit 2e56289889b705d003a170fafa69163ce5841f3b)
This commit is contained in:
parent
99ebfd810f
commit
d3b25867f5
@ -1159,29 +1159,6 @@ typedef struct r_samr_set_group_info
|
||||
} SAMR_R_SET_GROUPINFO;
|
||||
|
||||
|
||||
/* SAMR_Q_CREATE_DOM_ALIAS - SAM create alias */
|
||||
typedef struct q_samr_create_dom_alias_info
|
||||
{
|
||||
POLICY_HND dom_pol; /* policy handle */
|
||||
|
||||
UNIHDR hdr_acct_desc;
|
||||
UNISTR2 uni_acct_desc;
|
||||
|
||||
uint32 access_mask; /* 0x001f000f */
|
||||
|
||||
} SAMR_Q_CREATE_DOM_ALIAS;
|
||||
|
||||
/* SAMR_R_CREATE_DOM_ALIAS - SAM create alias */
|
||||
typedef struct r_samr_create_dom_alias_info
|
||||
{
|
||||
POLICY_HND alias_pol; /* policy handle */
|
||||
|
||||
uint32 rid;
|
||||
NTSTATUS status;
|
||||
|
||||
} SAMR_R_CREATE_DOM_ALIAS;
|
||||
|
||||
|
||||
/********************************************************/
|
||||
|
||||
typedef struct {
|
||||
|
@ -751,42 +751,6 @@ NTSTATUS rpccli_samr_query_aliasmem(struct rpc_pipe_client *cli,
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Create an alias */
|
||||
|
||||
NTSTATUS rpccli_samr_create_dom_alias(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
POLICY_HND *domain_pol, const char *name,
|
||||
POLICY_HND *alias_pol)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
SAMR_Q_CREATE_DOM_ALIAS q;
|
||||
SAMR_R_CREATE_DOM_ALIAS r;
|
||||
NTSTATUS result;
|
||||
|
||||
DEBUG(10,("cli_samr_create_dom_alias named %s\n", name));
|
||||
|
||||
ZERO_STRUCT(q);
|
||||
ZERO_STRUCT(r);
|
||||
|
||||
/* Marshall data and send request */
|
||||
|
||||
init_samr_q_create_dom_alias(&q, domain_pol, name);
|
||||
|
||||
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_CREATE_DOM_ALIAS,
|
||||
q, r,
|
||||
qbuf, rbuf,
|
||||
samr_io_q_create_dom_alias,
|
||||
samr_io_r_create_dom_alias,
|
||||
NT_STATUS_UNSUCCESSFUL);
|
||||
|
||||
/* Return output parameters */
|
||||
|
||||
if (NT_STATUS_IS_OK(result = r.status)) {
|
||||
*alias_pol = r.alias_pol;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Add an alias member */
|
||||
|
||||
NTSTATUS rpccli_samr_add_aliasmem(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
|
@ -4041,84 +4041,6 @@ bool samr_io_r_lookup_rids(const char *desc, SAMR_R_LOOKUP_RIDS * r_u,
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
inits a SAMR_Q_CREATE_DOM_ALIAS structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_q_create_dom_alias(SAMR_Q_CREATE_DOM_ALIAS * q_u,
|
||||
POLICY_HND *hnd, const char *acct_desc)
|
||||
{
|
||||
DEBUG(5, ("init_samr_q_create_dom_alias\n"));
|
||||
|
||||
q_u->dom_pol = *hnd;
|
||||
|
||||
init_unistr2(&q_u->uni_acct_desc, acct_desc, UNI_FLAGS_NONE);
|
||||
init_uni_hdr(&q_u->hdr_acct_desc, &q_u->uni_acct_desc);
|
||||
|
||||
q_u->access_mask = MAXIMUM_ALLOWED_ACCESS;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_q_create_dom_alias(const char *desc, SAMR_Q_CREATE_DOM_ALIAS * q_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_q_create_dom_alias");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("dom_pol", &q_u->dom_pol, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!smb_io_unihdr("hdr_acct_desc", &q_u->hdr_acct_desc, ps, depth))
|
||||
return False;
|
||||
if(!smb_io_unistr2("uni_acct_desc", &q_u->uni_acct_desc,
|
||||
q_u->hdr_acct_desc.buffer, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
if(!prs_uint32("access_mask", ps, depth, &q_u->access_mask))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_r_create_dom_alias(const char *desc, SAMR_R_CREATE_DOM_ALIAS * r_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_r_create_dom_alias");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("alias_pol", &r_u->alias_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_ADD_ALIASMEM structure.
|
||||
********************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user