summaryrefslogtreecommitdiffstats
path: root/source/include/rpc_lsa.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 10:02:23 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 10:02:23 +0000
commit6e7667125d142670db7393ed7a48386f3821d896 (patch)
treec2edadac543dffdd24fcc2a33512a8913da1488c /source/include/rpc_lsa.h
parent100d2705ddfa1fde73a0bb06e8e097b2b1cbf36a (diff)
downloadsamba-6e7667125d142670db7393ed7a48386f3821d896.tar.gz
samba-6e7667125d142670db7393ed7a48386f3821d896.tar.xz
samba-6e7667125d142670db7393ed7a48386f3821d896.zip
Move the lsa code across to the changed args for lookup_name, and surround it
in become_root()/unbecome_root(). Also only allocate the memory the client reqests - and don't allow the client to trigger an SMB_ASSERT if they ask for 'more'. Up the maximum number of sids allowed, and note that this is an arbiary guess, and can be raised without consequence. Andrew Bartlett
Diffstat (limited to 'source/include/rpc_lsa.h')
-rw-r--r--source/include/rpc_lsa.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/include/rpc_lsa.h b/source/include/rpc_lsa.h
index 0bae09480b8..8388877dd1d 100644
--- a/source/include/rpc_lsa.h
+++ b/source/include/rpc_lsa.h
@@ -90,9 +90,6 @@ enum SID_NAME_USE
/* XXXX these are here to get a compile! */
#define LSA_LOOKUPRIDS 0xFD
-#define LSA_MAX_GROUPS 96
-#define LSA_MAX_SIDS 128
-
/* DOM_QUERY - info class 3 and 5 LSA Query response */
typedef struct dom_query_info
{
@@ -362,7 +359,8 @@ typedef struct lsa_trans_name_info
} LSA_TRANS_NAME;
-#define MAX_LOOKUP_SIDS 30
+/* This number purly arbitary - just to prevent a client from requesting large amounts of memory */
+#define MAX_LOOKUP_SIDS 256
/* LSA_TRANS_NAME_ENUM - LSA Translated Name Enumeration container */
typedef struct lsa_trans_name_enum_info