mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Remove unused marshalling for SAMR_OPEN_USER.
Guenther
(This used to be commit f34c0e7ada
)
This commit is contained in:
parent
37b56c0113
commit
a3b00a3244
@ -1451,25 +1451,6 @@ typedef struct r_samr_lookup_rids_info
|
||||
} SAMR_R_LOOKUP_RIDS;
|
||||
|
||||
|
||||
/* SAMR_Q_OPEN_USER - probably an open */
|
||||
typedef struct q_samr_open_user_info
|
||||
{
|
||||
POLICY_HND domain_pol; /* policy handle */
|
||||
uint32 access_mask; /* 32 bit unknown - 0x02011b */
|
||||
uint32 user_rid; /* user RID */
|
||||
|
||||
} SAMR_Q_OPEN_USER;
|
||||
|
||||
|
||||
/* SAMR_R_OPEN_USER - probably an open */
|
||||
typedef struct r_samr_open_user_info
|
||||
{
|
||||
POLICY_HND user_pol; /* policy handle associated with unknown id */
|
||||
NTSTATUS status; /* return status */
|
||||
|
||||
} SAMR_R_OPEN_USER;
|
||||
|
||||
|
||||
/* SAMR_Q_CREATE_USER - probably a create */
|
||||
typedef struct q_samr_create_user_info
|
||||
{
|
||||
|
@ -95,44 +95,6 @@ NTSTATUS rpccli_samr_connect4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
return result;
|
||||
}
|
||||
|
||||
NTSTATUS rpccli_samr_open_user(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
POLICY_HND *domain_pol, uint32 access_mask,
|
||||
uint32 user_rid, POLICY_HND *user_pol)
|
||||
{
|
||||
prs_struct qbuf, rbuf;
|
||||
SAMR_Q_OPEN_USER q;
|
||||
SAMR_R_OPEN_USER r;
|
||||
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
|
||||
|
||||
DEBUG(10,("cli_samr_open_user with rid 0x%x\n", user_rid ));
|
||||
|
||||
ZERO_STRUCT(q);
|
||||
ZERO_STRUCT(r);
|
||||
|
||||
/* Marshall data and send request */
|
||||
|
||||
init_samr_q_open_user(&q, domain_pol, access_mask, user_rid);
|
||||
|
||||
CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_OPEN_USER,
|
||||
q, r,
|
||||
qbuf, rbuf,
|
||||
samr_io_q_open_user,
|
||||
samr_io_r_open_user,
|
||||
NT_STATUS_UNSUCCESSFUL);
|
||||
|
||||
/* Return output parameters */
|
||||
|
||||
if (NT_STATUS_IS_OK(result = r.status)) {
|
||||
*user_pol = r.user_pol;
|
||||
#ifdef __INSURE__
|
||||
user_pol->marker = malloc(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* Create domain group */
|
||||
|
||||
NTSTATUS rpccli_samr_create_dom_group(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||
|
@ -4596,74 +4596,6 @@ bool samr_io_r_lookup_names(const char *desc, SAMR_R_LOOKUP_NAMES * r_u,
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_q_open_user(SAMR_Q_OPEN_USER * q_u,
|
||||
POLICY_HND *pol,
|
||||
uint32 access_mask, uint32 rid)
|
||||
{
|
||||
DEBUG(5, ("samr_init_samr_q_open_user\n"));
|
||||
|
||||
q_u->domain_pol = *pol;
|
||||
q_u->access_mask = access_mask;
|
||||
q_u->user_rid = rid;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_q_open_user(const char *desc, SAMR_Q_OPEN_USER * q_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_q_open_user");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("domain_pol", &q_u->domain_pol, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!prs_uint32("access_mask", ps, depth, &q_u->access_mask))
|
||||
return False;
|
||||
if(!prs_uint32("user_rid ", ps, depth, &q_u->user_rid))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_r_open_user(const char *desc, SAMR_R_OPEN_USER * r_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_r_open_user");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!smb_io_pol_hnd("user_pol", &r_u->user_pol, ps, depth))
|
||||
return False;
|
||||
|
||||
if(!prs_ntstatus("status", ps, depth, &r_u->status))
|
||||
return False;
|
||||
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user