Changed hard-coded number of users/groups in SAMR_QUERY_DOMAIN_INFO
authorMatthew Chapman <matty@samba.org>
Thu, 18 Mar 1999 06:30:27 +0000 (06:30 +0000)
committerMatthew Chapman <matty@samba.org>
Thu, 18 Mar 1999 06:30:27 +0000 (06:30 +0000)
to MAX_SAM_ENTRIES to prevent truncation of user lists.
A proper implementation is not important right now.
(This used to be commit 900238a66153c276d63780e3264651089291d185)

source3/rpc_parse/parse_samr.c

index 8fc56d3d9b6ced8340df79c02fc411891b3b3b1d..9e5c3b34958ce81cbdf880dc480bd83d7be44299 100644 (file)
@@ -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 */