Increase limit of mapped SIDS to 0x5000, which is what 2k and later do.
authorjmcd <jmcd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Sat, 19 Feb 2005 10:41:51 +0000 (10:41 +0000)
committerjmcd <jmcd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Sat, 19 Feb 2005 10:41:51 +0000 (10:41 +0000)
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@5456 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/include/rpc_lsa.h

index c0425271b3230d8ceef6db291f69b6683abfc41b..01add64727c1ca744882e3450260e355d0b2b746 100644 (file)
@@ -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