From: Matthew Chapman Date: Thu, 18 Mar 1999 06:30:27 +0000 (+0000) Subject: Changed hard-coded number of users/groups in SAMR_QUERY_DOMAIN_INFO X-Git-Tag: samba-4.0.0alpha6~801^2~20865 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=eb82f27bd194f578ffa0557bdfb289e89a132e6b;hp=e8ac69c16877dd827719134dbce49f4aa3608c9d Changed hard-coded number of users/groups in SAMR_QUERY_DOMAIN_INFO to MAX_SAM_ENTRIES to prevent truncation of user lists. A proper implementation is not important right now. (This used to be commit 900238a66153c276d63780e3264651089291d185) --- diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 8fc56d3d9b6..9e5c3b34958 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -398,9 +398,9 @@ void make_unk_info2(SAM_UNK_INFO_2 *u_2, char *domain, char *server) u_2->unknown_4 = 0x00000001; u_2->unknown_5 = 0x00000003; u_2->unknown_6 = 0x00000001; - u_2->num_domain_usrs = 0x00000008; - u_2->num_domain_grps = 0x00000003; - u_2->num_local_grps = 0x00000003; + u_2->num_domain_usrs = MAX_SAM_ENTRIES; + u_2->num_domain_grps = MAX_SAM_ENTRIES; + u_2->num_local_grps = MAX_SAM_ENTRIES; memset(u_2->padding, 0, sizeof(u_2->padding)); /* 12 bytes zeros */