diff options
author | Jim McDonough <jmcd@samba.org> | 2005-02-19 10:41:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:41 -0500 |
commit | 80a514a6effd46d7efe1d7e86c4fcea23836ed7a (patch) | |
tree | 2d71697f06b8742189091484bc7b9ca402f1b82a /source3 | |
parent | acdf1aa308df48654e63b7072c47e8696ec670b9 (diff) | |
download | samba-80a514a6effd46d7efe1d7e86c4fcea23836ed7a.tar.gz samba-80a514a6effd46d7efe1d7e86c4fcea23836ed7a.tar.bz2 samba-80a514a6effd46d7efe1d7e86c4fcea23836ed7a.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/rpc_lsa.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |