mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
Remove unused marshalling for SAMR_SET_SEC_OBJ.
Guenther
This commit is contained in:
parent
6bfd76002f
commit
90982cf43a
@ -1497,40 +1497,6 @@ NTSTATUS rpccli_samr_remove_sid_foreign_domain(struct rpc_pipe_client *cli,
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Set user security object */
|
||||
|
||||
NTSTATUS rpccli_samr_set_sec_obj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
POLICY_HND *user_pol, uint32 sec_info,
|
||||
SEC_DESC_BUF *sec_desc_buf)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
SAMR_Q_SET_SEC_OBJ q;
|
||||
SAMR_R_SET_SEC_OBJ r;
|
||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
||||
|
||||
DEBUG(10,("cli_samr_set_sec_obj\n"));
|
||||
|
||||
ZERO_STRUCT(q);
|
||||
ZERO_STRUCT(r);
|
||||
|
||||
/* Marshall data and send request */
|
||||
|
||||
init_samr_q_set_sec_obj(&q, user_pol, sec_info, sec_desc_buf);
|
||||
|
||||
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_SET_SEC_OBJECT,
|
||||
q, r,
|
||||
qbuf, rbuf,
|
||||
samr_io_q_set_sec_obj,
|
||||
samr_io_r_set_sec_obj,
|
||||
NT_STATUS_UNSUCCESSFUL);
|
||||
|
||||
/* Return output parameters */
|
||||
|
||||
result = r.status;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Lookup Domain Name */
|
||||
|
||||
NTSTATUS rpccli_samr_lookup_domain(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
|
@ -264,36 +264,6 @@ bool samr_io_r_get_usrdom_pwinfo(const char *desc, SAMR_R_GET_USRDOM_PWINFO * r_
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_q_set_sec_obj(const char *desc, SAMR_Q_SET_SEC_OBJ * q_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_q_set_sec_obj");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("pol", &q_u->pol, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!prs_uint32("sec_info", ps, depth, &q_u->sec_info))
|
||||
return False;
|
||||
|
||||
if(!sec_io_desc_buf("sec_desc", &q_u->buf, ps, depth))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
@ -856,43 +826,6 @@ bool samr_io_r_query_domain_info(const char *desc, SAMR_R_QUERY_DOMAIN_INFO * r_
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_q_set_sec_obj(SAMR_Q_SET_SEC_OBJ * q_u,
|
||||
POLICY_HND *pol, uint32 sec_info, SEC_DESC_BUF *buf)
|
||||
{
|
||||
DEBUG(5, ("samr_init_samr_q_set_sec_obj\n"));
|
||||
|
||||
q_u->pol = *pol;
|
||||
q_u->sec_info = sec_info;
|
||||
q_u->buf = buf;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a SAMR_R_SET_SEC_OBJ structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_r_set_sec_obj(const char *desc, SAMR_R_SET_SEC_OBJ * r_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_r_set_sec_obj");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!prs_ntstatus("status", ps, depth, &r_u->status))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a SAM_STR1 structure.
|
||||
********************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user