mirror of
https://github.com/samba-team/samba.git
synced 2025-11-15 16:23:49 +03:00
Remove unused marshalling for SAMR_GET_USRDOM_PWINFO.
Guenther
This commit is contained in:
@@ -185,89 +185,6 @@ bool samr_io_r_remove_sid_foreign_domain(const char *desc, SAMR_R_REMOVE_SID_FOR
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_q_get_usrdom_pwinfo(SAMR_Q_GET_USRDOM_PWINFO * q_u,
|
||||
POLICY_HND *user_pol)
|
||||
{
|
||||
DEBUG(5, ("samr_init_samr_q_get_usrdom_pwinfo\n"));
|
||||
|
||||
q_u->user_pol = *user_pol;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_q_get_usrdom_pwinfo(const char *desc, SAMR_Q_GET_USRDOM_PWINFO * q_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (q_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_q_get_usrdom_pwinfo");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
return smb_io_pol_hnd("user_pol", &q_u->user_pol, ps, depth);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Init.
|
||||
********************************************************************/
|
||||
|
||||
void init_samr_r_get_usrdom_pwinfo(SAMR_R_GET_USRDOM_PWINFO *r_u, NTSTATUS status)
|
||||
{
|
||||
DEBUG(5, ("init_samr_r_get_usrdom_pwinfo\n"));
|
||||
|
||||
r_u->min_pwd_length = 0x0000;
|
||||
|
||||
/*
|
||||
* used to be
|
||||
* r_u->unknown_1 = 0x0015;
|
||||
* but for trusts.
|
||||
*/
|
||||
r_u->unknown_1 = 0x01D1;
|
||||
r_u->unknown_1 = 0x0015;
|
||||
|
||||
r_u->password_properties = 0x00000000;
|
||||
|
||||
r_u->status = status;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
bool samr_io_r_get_usrdom_pwinfo(const char *desc, SAMR_R_GET_USRDOM_PWINFO * r_u,
|
||||
prs_struct *ps, int depth)
|
||||
{
|
||||
if (r_u == NULL)
|
||||
return False;
|
||||
|
||||
prs_debug(ps, depth, desc, "samr_io_r_get_usrdom_pwinfo");
|
||||
depth++;
|
||||
|
||||
if(!prs_align(ps))
|
||||
return False;
|
||||
|
||||
if(!prs_uint16("min_pwd_length", ps, depth, &r_u->min_pwd_length))
|
||||
return False;
|
||||
if(!prs_uint16("unknown_1", ps, depth, &r_u->unknown_1))
|
||||
return False;
|
||||
if(!prs_uint32("password_properties", ps, depth, &r_u->password_properties))
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user