diff options
author | Matthew Chapman <matty@samba.org> | 1999-03-18 06:30:27 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-03-18 06:30:27 +0000 |
commit | eb82f27bd194f578ffa0557bdfb289e89a132e6b (patch) | |
tree | 6f9a4410fb24cf306d3c93bd97ee7cfa0fcc8e38 /source3/rpc_parse | |
parent | e8ac69c16877dd827719134dbce49f4aa3608c9d (diff) | |
download | samba-eb82f27bd194f578ffa0557bdfb289e89a132e6b.tar.gz samba-eb82f27bd194f578ffa0557bdfb289e89a132e6b.tar.bz2 samba-eb82f27bd194f578ffa0557bdfb289e89a132e6b.zip |
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)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 8fc56d3d9b..9e5c3b3495 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 */ |