summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-12-14 16:48:38 +0100
committerVolker Lendecke <vl@samba.org>2009-12-14 17:00:12 +0100
commit0d10efe1fdec2a621bd6580e3e120287c1682d07 (patch)
tree26385319052b3e6a6341900439ac001375af7508 /librpc/gen_ndr
parent9260396bbc9651ca44c6348c5fe1e6ccc464ab13 (diff)
downloadsamba-0d10efe1fdec2a621bd6580e3e120287c1682d07.tar.gz
samba-0d10efe1fdec2a621bd6580e3e120287c1682d07.tar.bz2
samba-0d10efe1fdec2a621bd6580e3e120287c1682d07.zip
s3: Allow up to 20480 entries in LookupSids, as mandated by the official IDL
Seen in the wild by putting >1000 users into BUILTIN\Users
Diffstat (limited to 'librpc/gen_ndr')
-rw-r--r--librpc/gen_ndr/lsa.h4
-rw-r--r--librpc/gen_ndr/ndr_lsa.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/librpc/gen_ndr/lsa.h b/librpc/gen_ndr/lsa.h
index a0af571283..4a4a95d77a 100644
--- a/librpc/gen_ndr/lsa.h
+++ b/librpc/gen_ndr/lsa.h
@@ -312,7 +312,7 @@ struct lsa_SidPtr {
};
struct lsa_SidArray {
- uint32_t num_sids;/* [range(0,1000)] */
+ uint32_t num_sids;/* [range(0,20480)] */
struct lsa_SidPtr *sids;/* [unique,size_is(num_sids)] */
}/* [public] */;
@@ -397,7 +397,7 @@ struct lsa_TranslatedName {
};
struct lsa_TransNameArray {
- uint32_t count;/* [range(0,1000)] */
+ uint32_t count;/* [range(0,20480)] */
struct lsa_TranslatedName *names;/* [unique,size_is(count)] */
};
diff --git a/librpc/gen_ndr/ndr_lsa.c b/librpc/gen_ndr/ndr_lsa.c
index ad7b2be32e..b198350b2d 100644
--- a/librpc/gen_ndr/ndr_lsa.c
+++ b/librpc/gen_ndr/ndr_lsa.c
@@ -1945,7 +1945,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_lsa_SidArray(struct ndr_pull *ndr, int ndr_f
if (ndr_flags & NDR_SCALARS) {
NDR_CHECK(ndr_pull_align(ndr, 5));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_sids));
- if (r->num_sids > 1000) {
+ if (r->num_sids > 20480) {
return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
}
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sids));
@@ -2444,7 +2444,7 @@ static enum ndr_err_code ndr_pull_lsa_TransNameArray(struct ndr_pull *ndr, int n
if (ndr_flags & NDR_SCALARS) {
NDR_CHECK(ndr_pull_align(ndr, 5));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->count));
- if (r->count > 1000) {
+ if (r->count > 20480) {
return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
}
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_names));