summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-29 16:50:46 -0700
committerAndrew Tridgell <tridge@samba.org>2008-09-29 16:50:46 -0700
commit40fa4c4154aa572f39fddf16b2fefbe370910360 (patch)
treea894112735de0211d798970d5ca1f99280bdda12 /source4/rpc_server
parent385015f8f2ea44e8f846e72c7bc74d4c489ae49e (diff)
downloadsamba-40fa4c4154aa572f39fddf16b2fefbe370910360.tar.gz
samba-40fa4c4154aa572f39fddf16b2fefbe370910360.tar.bz2
samba-40fa4c4154aa572f39fddf16b2fefbe370910360.zip
we need to return NT_STATUS_INVALID_PARAMETER for bad levels in
lsalookupnames2
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/lsa/lsa_lookup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/lsa/lsa_lookup.c b/source4/rpc_server/lsa/lsa_lookup.c
index 5f080e6da2..7bf7d849b7 100644
--- a/source4/rpc_server/lsa/lsa_lookup.c
+++ b/source4/rpc_server/lsa/lsa_lookup.c
@@ -862,6 +862,11 @@ NTSTATUS dcesrv_lsa_LookupNames2(struct dcesrv_call_state *dce_call,
DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_POLICY);
+ if (r->in.level < LSA_LOOKUP_NAMES_ALL ||
+ r->in.level > LSA_LOOKUP_NAMES_RODC_REFERRAL_TO_FULL_DC) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
state = h->data;
r->out.domains = talloc_zero(mem_ctx, struct lsa_RefDomainList);