svn commit: samba r18369 - in branches/SAMBA_3_0/source: include
rpc_parse
vlendec at samba.org
vlendec at samba.org
Mon Sep 11 07:55:52 GMT 2006
Author: vlendec
Date: 2006-09-11 07:55:51 +0000 (Mon, 11 Sep 2006)
New Revision: 18369
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18369
Log:
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
Modified:
branches/SAMBA_3_0/source/include/rpc_samr.h
branches/SAMBA_3_0/source/rpc_parse/parse_samr.c
Changeset:
Modified: branches/SAMBA_3_0/source/include/rpc_samr.h
===================================================================
--- branches/SAMBA_3_0/source/include/rpc_samr.h 2006-09-11 07:51:30 UTC (rev 18368)
+++ branches/SAMBA_3_0/source/include/rpc_samr.h 2006-09-11 07:55:51 UTC (rev 18369)
@@ -222,7 +222,7 @@
typedef struct sam_user_info_24
{
uint8 pass[516];
- uint16 pw_len;
+ uint8 pw_len;
} SAM_USER_INFO_24;
/*
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_samr.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_samr.c 2006-09-11 07:51:30 UTC (rev 18368)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_samr.c 2006-09-11 07:55:51 UTC (rev 18369)
@@ -5578,7 +5578,8 @@
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"));
memcpy(usr->pass, newpass, sizeof(usr->pass));
@@ -5606,10 +5607,10 @@
return False;
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;
} 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;
}
More information about the samba-cvs
mailing list