From 80a514a6effd46d7efe1d7e86c4fcea23836ed7a Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Sat, 19 Feb 2005 10:41:51 +0000 Subject: r5456: Increase limit of mapped SIDS to 0x5000, which is what 2k and later do. NT has no limit. We still don't respond the way 2k would to requests larger, which is to actually allocate the memory and send back the entire response, plus a return status of NT_STATUS_NONE_MAPPED. Still looking into ways of doing this without crashing windows. (This used to be commit 9afe5acdc22adaed4b4b3d70ba3a1a7898256282) --- source3/include/rpc_lsa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/include/rpc_lsa.h') diff --git a/source3/include/rpc_lsa.h b/source3/include/rpc_lsa.h index c0425271b3..01add64727 100644 --- a/source3/include/rpc_lsa.h +++ b/source3/include/rpc_lsa.h @@ -390,8 +390,8 @@ typedef struct lsa_trans_name_info } LSA_TRANS_NAME; -/* This number purly arbitary - just to prevent a client from requesting large amounts of memory */ -#define MAX_LOOKUP_SIDS 256 +/* This number is based on Win2k and later maximum response allowed */ +#define MAX_LOOKUP_SIDS 20480 /* LSA_TRANS_NAME_ENUM - LSA Translated Name Enumeration container */ typedef struct lsa_trans_name_enum_info -- cgit