1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

r18369: I've got a sniff where NT4 sends just a single byte after the 516 byte

password blob, it seems that pw_len is just a uint8 instead of uint16.

This might also be interesting for Samba4's samr.idl.

Volker
This commit is contained in:
Volker Lendecke
2006-09-11 07:55:51 +00:00
committed by Gerald (Jerry) Carter
parent fa8b2e2a58
commit 68ded4ba07
2 changed files with 5 additions and 4 deletions

View File

@@ -222,7 +222,7 @@ typedef struct sam_user_info_23
typedef struct sam_user_info_24 typedef struct sam_user_info_24
{ {
uint8 pass[516]; uint8 pass[516];
uint16 pw_len; uint8 pw_len;
} SAM_USER_INFO_24; } SAM_USER_INFO_24;
/* /*

View File

@@ -5578,7 +5578,8 @@ static BOOL sam_io_user_info17(const char *desc, SAM_USER_INFO_17 * usr,
init_sam_user_infoa init_sam_user_infoa
*************************************************************************/ *************************************************************************/
void init_sam_user_info24(SAM_USER_INFO_24 * usr, char newpass[516], uint16 pw_len) void init_sam_user_info24(SAM_USER_INFO_24 * usr, char newpass[516],
uint8 pw_len)
{ {
DEBUG(10, ("init_sam_user_info24:\n")); DEBUG(10, ("init_sam_user_info24:\n"));
memcpy(usr->pass, newpass, sizeof(usr->pass)); memcpy(usr->pass, newpass, sizeof(usr->pass));
@@ -5606,10 +5607,10 @@ static BOOL sam_io_user_info24(const char *desc, SAM_USER_INFO_24 * usr,
return False; return False;
if (MARSHALLING(ps) && (usr->pw_len != 0)) { if (MARSHALLING(ps) && (usr->pw_len != 0)) {
if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) if (!prs_uint8("pw_len", ps, depth, &usr->pw_len))
return False; return False;
} else if (UNMARSHALLING(ps)) { } else if (UNMARSHALLING(ps)) {
if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) if (!prs_uint8("pw_len", ps, depth, &usr->pw_len))
return False; return False;
} }